rohan13 commited on
Commit
33c752d
Β·
1 Parent(s): c83aa17

add linebreak

Browse files
Files changed (1) hide show
  1. static/chatbot.js +1 -1
static/chatbot.js CHANGED
@@ -27,7 +27,7 @@ $(document).ready(function() {
27
  if (hasHtml) {
28
  $messageText = $('<p>').html(message);
29
  } else {
30
- $messageText = $('<p>').html(message.replace(/(https?:\/\/[^\s]+)/g, '<a href="$1">$1</a>'));
31
  }
32
 
33
  $message.append($messageText);
 
27
  if (hasHtml) {
28
  $messageText = $('<p>').html(message);
29
  } else {
30
+ $messageText = $('<p>').html(message.replace(/(https?:\/\/[^\s]+)/g, '<a href="$1">$1</a>').replace(/(SOURCES:)/, '<br>$1'));
31
  }
32
 
33
  $message.append($messageText);