We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While $.isUrlInternal('http://benalman.com/') returns true, $.isUrlInternal('http://benalman.com') (trailing slash omitted) returns false. Fix?
$.isUrlInternal('http://benalman.com/')
$.isUrlInternal('http://benalman.com')
The text was updated successfully, but these errors were encountered:
looks like change the regular expression fixed the problem:
from:
var re = new RegExp( '^' + alt_hostname + '(.*)', 'i' ), pattern = '^(?:' + loc.protocol + ')?//' + loc.hostname.replace(re, alt_hostname + '$1').replace( /\\?\./g, '\\.' ) + (loc.port ? ':' + loc.port : '') + '/';
to:
var re = new RegExp( '^' + alt_hostname + '(.*)', 'i' ), pattern = '^(?:' + loc.protocol + ')?//' + loc.hostname.replace(re, alt_hostname + '$1').replace( /\\?\./g, '\\.' ) + (loc.port ? ':' + loc.port : '') + "(?:$|/)";
Sorry, something went wrong.
No branches or pull requests
While
$.isUrlInternal('http://benalman.com/')
returns true,$.isUrlInternal('http://benalman.com')
(trailing slash omitted) returns false. Fix?The text was updated successfully, but these errors were encountered: