daddyz / phonelib

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

Parsing shortcodes? #227

Closed rockwellll closed 3 years ago

rockwellll commented 3 years ago

Hi. First of all thank you very much for the outstanding gem. works like a charm with every scenario.

One quick question i have, how to parse shortcodes?. I have enabled it in the phonlib configuration. but in the console i get this


3.0.1 :007 > Phonelib.valid? "+5988888"
 => false 
3.0.1 :008 > 
rockwellll commented 3 years ago

I found out that phonelib successfully parse the number. but it still says invalid. so it works. thanx