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

isFQDN: allow numbers everywhere #1923

Closed
kle-pra opened this issue Feb 4, 2022 · 7 comments
Closed

isFQDN: allow numbers everywhere #1923

kle-pra opened this issue Feb 4, 2022 · 7 comments

Comments

@kle-pra
Copy link

kle-pra commented Feb 4, 2022

Hello,

according to FQDN specs ("Only letters, numbers, or dashes can be used."), numbers can be a part of FQDN, not only in TLD (which we can now allow with allow_numeric_tld: true).

Maybe there should be a more general option, alow_numeric.

@sysmat
Copy link

sysmat commented Feb 4, 2022

Example: abc.efg.g1h. will always fail, current options don't provide this use case, but is valid

validator.isFQDN('abc.efg.g1h.', 
  { allow_trailing_dot: true, allow_underscores: true, allow_numeric_tld: true}); // false but should be true

@pano9000
Copy link
Contributor

@kle-pra @sysmat
it looks like commit 8f04ca9 / PR #1939 may have fixed the issue.

Kindly confirm if that is the case, so that I can close the issue

@kle-pra
Copy link
Author

kle-pra commented Jan 23, 2023

Thank you, It looks OK now when cloning, building & testing file validator.min.js from master branch. The example from @sysmat also works correctly.

Is there also a possibility to npm install master branch directly from github (for example for angular project)?
npm i https://github.com/validatorjs/validator.js.git doesn't seem to work correctly.

@sysmat
Copy link

sysmat commented Jan 23, 2023

it looks fine. Is there any plan for release or roadmap

@WikiRik
Copy link
Member

WikiRik commented Jan 23, 2023

The idea is that the next release will come out somewhere in the next two weeks

@pano9000
Copy link
Contributor

thanks for your replies. closing this as "fixed" then

@pano9000
Copy link
Contributor

pano9000 commented Jan 23, 2023

@kle-pra

Is there also a possibility to npm install master branch directly from github (for example for angular project)? npm i https://github.com/validatorjs/validator.js.git doesn't seem to work correctly.

this is down to issue #2123
as some sort of workaround, you could check comment: #2123 (comment)

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

No branches or pull requests

4 participants