|
|
@ -172,7 +172,7 @@ export const urlRegex = (function() {
|
|
|
|
, 'i');
|
|
|
|
, 'i');
|
|
|
|
// Valid end-of-path chracters (so /foo. does not gobble the period).
|
|
|
|
// Valid end-of-path chracters (so /foo. does not gobble the period).
|
|
|
|
// 1. Allow =&# for empty URL parameters and other URL-join artifacts
|
|
|
|
// 1. Allow =&# for empty URL parameters and other URL-join artifacts
|
|
|
|
regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}_~&\|@]|(?:#{validUrlBalancedParens})/i);
|
|
|
|
regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}~&\|@]|(?:#{validUrlBalancedParens})/i);
|
|
|
|
// Allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
|
|
|
|
// Allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
|
|
|
|
regexen.validUrlPath = regexSupplant('(?:' +
|
|
|
|
regexen.validUrlPath = regexSupplant('(?:' +
|
|
|
|
'(?:' +
|
|
|
|
'(?:' +
|
|
|
|