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

feat(isFQDN): fix tld validation #1091

Merged
merged 6 commits into from
Mar 22, 2020
Merged

feat(isFQDN): fix tld validation #1091

merged 6 commits into from
Mar 22, 2020

Conversation

alouini333
Copy link
Contributor

Actually this commit is related to #1087
The isFQDN feature does not filter some illegal characters like
� or ©

lib/isFQDN.js Outdated
} // disallow special characers


if (/[\u00A9\uFFFD]/.test(tld)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an exhaustive list or we might be having more characters? And why don't we add them on line 45?

@profnandaa
Copy link
Member

Thanks for the PR! 🎉

@alouini333
Copy link
Contributor Author

First, sorry for this later answer and thank you for reviewing my PR, as you mentioned, I moved the instruction to the previous line.
For the list of characters, it not the final list, but thses are the illegal characters that I found during my tests

@profnandaa
Copy link
Member

Sorry on my delay on checking this, I'm going to review it by end of the weekend. Please be on the standby for any changes to be made...

Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@profnandaa profnandaa merged commit 2a3ad84 into validatorjs:master Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants