Skip to content

Commit

Permalink
URL paths etc. can also contain a %
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Feb 13, 2022
1 parent cc597eb commit 828880f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const nick_col_override = {
jinni: 'bot',
};

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

0 comments on commit 828880f

Please sign in to comment.