FindMySlots / findmyslot

Find My Slot
MIT License
1 stars 1 forks source link

Multiple network call for PINCODE input #8

Open khotharish1207 opened 3 years ago

khotharish1207 commented 3 years ago

PIN is always 6 digit. You can reduce network call by validating PIN input value. (might use regex "^[1-9]{1}[0-9]{2}\s{0, 1}[0-9]{3}$";)

ref - https://en.wikipedia.org/wiki/Postal_Index_Number

pathikg commented 3 years ago

yeah , even this should work

^[1-9][0-9]{5}$