Skip to content

Commit 4f9d774

Browse files
authored
Merge pull request #21 from citrus-it/hash
A URL hash can contain a !
2 parents 8adc442 + 828880f commit 4f9d774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const nick_col_override = {
2626
jinni: 'bot',
2727
};
2828

29-
const u_char = '[\\-;:&=~\\.\\+\\$,\\w]';
30-
const u_hchar = '[/\\-;:&=~\\.\\+\\$,\\w]';
29+
const u_char = '[\\-;:%&=~\\.\\+\\$,\\w]';
30+
const u_hchar = '[/\\-;:!%&=~\\.\\+\\$,\\w]';
3131
const u_proto = `(?:https?|ftp)`;
3232
const u_auth = `(?:${u_char}+@)`;
3333
const u_host = `(?:(?:[-a-z0-9]+\\.?)+)`;

0 commit comments

Comments
 (0)