daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.04k stars 130 forks source link

Invalid Singaporean numbers beginning with 8 #248

Closed seanneale closed 2 years ago

seanneale commented 2 years ago

Valid Singaporean numbers are being return as invalid. 80221069 is being returned as invalid for SG but it is valid on the google phonelib

Phonelib.valid_for_country?("80221069", "SG") # false

I have confirmed the number is valid but it seems to be affecting all phone numbers beginning with 8. Any idea why this are invalid?

Thanks for looking into this, I hope I haven't missed a previous discussion about it

daddyz commented 2 years ago

@seanneale thanks for reporting. After data update in v0.6.56 I see it returns true, please update