Skip to content
New issue

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

Invalid URL get validated #2405

Closed
Shavindra opened this issue May 22, 2024 · 2 comments
Closed

Invalid URL get validated #2405

Shavindra opened this issue May 22, 2024 · 2 comments
Labels

Comments

@Shavindra
Copy link

Describe the bug
isURL returns http://wwww.new#$%Url.com as a valid URL.

Examples
isURL returns http://wwww.new#$%Url.com as a valid URL.

Additional context
Validator.js version:
Node.js version:
OS platform: [windows, linux, macOS, etc]

@keshavlingala
Copy link
Contributor

The hostname wwww.new is valid according to the rules for fully qualified domain names (FQDNs)
The special characters #$%Url.com are part of the URL's path or fragment section, not the hostname.

@Shavindra Looks like it's not a bug

@profnandaa
Copy link
Member

yes, that's right. Thanks @keshavlingala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants