Skip to content

Commit 8adc442

Browse files
authored
Merge pull request #20 from citrus-it/pre
Fix whitespace display of messages
2 parents 2908247 + e7342ac commit 8adc442

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

css/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ a {
111111
}
112112

113113
.message {
114+
white-space: pre-wrap;
114115
a {
115116
overflow-wrap: break-word;
116117
word-wrap: break-word;

script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const nick_col_override = {
2020
oetiker: 'ooce',
2121
mattfidd: 'ooce',
2222
fenix: 'bot',
23+
'fenix`': 'bot',
2324
mrscowley: 'bot',
2425
gitomat: 'bot',
2526
jinni: 'bot',
@@ -30,7 +31,7 @@ const u_hchar = '[/\\-;:&=~\\.\\+\\$,\\w]';
3031
const u_proto = `(?:https?|ftp)`;
3132
const u_auth = `(?:${u_char}+@)`;
3233
const u_host = `(?:(?:[-a-z0-9]+\\.?)+)`;
33-
const u_path = `(?:(?:\\/${u_char}+)+\/?)`;
34+
const u_path = `(?:(?:\\/${u_char}*)+\/?)`;
3435
const u_query = `(?:\\?${u_char}+)`;
3536
const u_hash = `(?:#${u_hchar}+)`;
3637
const url_regex = new RegExp(

0 commit comments

Comments
 (0)