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

isDate : iOS and Android return different results

Open thibaultadet opened this issue 1 year ago • 2 comments

Describe the bug I'm using React Native with Expo. I use isDate. The function behaves differently between iOS and Android platform.

Examples When I check isDate("2023-09-12") it returns true on iOS but false on Android. Same for other dates with - or /.

Additional context Validator.js version: 13.9.0 Node.js version: v16.18.1 OS platform: Android & iOS React: "18.2.0" React-native: "0.71.8" Expo version: 48.0.17

thibaultadet avatar Oct 03 '23 09:10 thibaultadet

Couldn't reproduce

JayanthBontha avatar Oct 06 '23 15:10 JayanthBontha

Looks like this might be related or a duplicate of #2256

jgulledge19 avatar Jan 11 '24 16:01 jgulledge19