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

isLatLong returns true #929

Closed
fadijabi opened this issue Nov 8, 2018 · 0 comments · Fixed by #1074
Closed

isLatLong returns true #929

fadijabi opened this issue Nov 8, 2018 · 0 comments · Fixed by #1074

Comments

@fadijabi
Copy link

fadijabi commented Nov 8, 2018

validator = require('validator');
console.log(validator.isLatLong('(29.98727, 48.2268726')); // true

The above code returns true although there is a "(" character in Y coordinates and not closed in X coordinates. It would be better if it returns true if coordinates are wrapped in () only.

ezkemboi added a commit to ezkemboi/validator.js that referenced this issue Jul 29, 2019
- when lat starts with (, it makes it a true latitude.
- Closes validatorjs#929
profnandaa pushed a commit that referenced this issue Aug 2, 2019
- when lat starts with (, it makes it a true latitude.
- Closes #929
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants