Spaces:
Runtime error
Runtime error
add linebreak
Browse files- 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);
|