mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix autolink addon not recognizing some URLs containing special characters
This commit is contained in:
parent
1c43cbb126
commit
729f51a65b
1 changed files with 2 additions and 2 deletions
|
|
@ -10,8 +10,8 @@
|
|||
var ip_re = '(?:'+max_255_re+'\\.){3}'+max_255_re;
|
||||
var port_re = '(?::([0-9]+))?';
|
||||
var user_re = '(?:/~\\w+)?';
|
||||
var path_re = '(?:/[\\w!@$%&!?="/.,:;-]+)*';
|
||||
var hash_re = '(?:#[\\w!@$%&!?="/.,:;-]*)?';
|
||||
var path_re = '(?:/[\\w!@$%&!?+=_~"/.,:;-]*)?';
|
||||
var hash_re = '(?:#[\\w!@$%&!?+=_~"/.,:;-]*)?';
|
||||
|
||||
var url_regex = new RegExp('('+protocol_re+'('+domain_re+'|'+ip_re+'|localhost'+')'+port_re+user_re+path_re+hash_re+')', 'ig');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue