validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

add `isLat` and `isLong`

Open fzn0x opened this issue 2 years ago • 2 comments

Sometimes we want to check lat or long only.

fzn0x avatar Oct 26 '21 06:10 fzn0x

@fncolon I will like to work on this issue. Will that be possible?

carelledjuffo avatar Oct 27 '21 12:10 carelledjuffo

@fncolon I will like to work on this issue. Will that be possible?

Go on 😺

fzn0x avatar Nov 04 '21 15:11 fzn0x

@profnandaa lets have more discussion on this as we already have isLatLong validator

rubiin avatar Feb 03 '23 16:02 rubiin

I think it's good to be able to validate lat and long separately but that could also be a part of the isLatLong validator through options in my opinion.

WikiRik avatar Feb 03 '23 18:02 WikiRik

Sure, let's go with isLatLong.

./na

On Fri, Feb 3, 2023, 21:20 Rik Smale @.***> wrote:

I think it's good to be able to validate lat and long separately but that could also be a part of the isLatLong validator through options in my opinion.

— Reply to this email directly, view it on GitHub https://github.com/validatorjs/validator.js/issues/1830#issuecomment-1416237366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7ZEOMF5HIM5BVRZLART3WVVEAFANCNFSM5GW5WP7A . You are receiving this because you were mentioned.Message ID: @.***>

profnandaa avatar Feb 04 '23 03:02 profnandaa