You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In case there is a reference to a URL not in the beginning of the main URL, the validator returns false.
For example:
this returns true: validator.isURL('http://test.com?ref=http://test2.com')
but this returns false: validator.isURL('test.com?ref=http://test2.com')
they are exactly the same except that the second one has no "http://" in the beginning.
The text was updated successfully, but these errors were encountered:
That said, your browser and command line tools probably interpret the URL correctly without the need for escaped query string values, so we could possibly allow it too.
Hi,
In case there is a reference to a URL not in the beginning of the main URL, the validator returns false.
For example:
this returns true:
validator.isURL('http://test.com?ref=http://test2.com')
but this returns false:
validator.isURL('test.com?ref=http://test2.com')
they are exactly the same except that the second one has no "http://" in the beginning.
The text was updated successfully, but these errors were encountered: