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
Not rigorous enough for security purposes. A specially crafted URL could fool this regex by putting an unencoded absolute URL in the path or query string. However, it should work correctly for benevolent users who want to embed URLs, since you would typically encode URLs before putting them in the path or query string.
This would prevent you from using https://localhost (with or without a port number), which may or may not matter. You could use .allow() to fix that specific case, I suppose. Or you could extend the regex even further.
I didn't account for numbers in TLDs, as there don't seem to be any TLDs that include numbers at the moment.
I want to validate uri
I know that
https://github
is valid but in my use case I want to treat as invalidThe text was updated successfully, but these errors were encountered: