ttacon / libphonenumber

golang port of Google's libphonenumber
MIT License
619 stars 105 forks source link

839 Area code is not shown to be valid #104

Open tpham-bcs opened 3 years ago

tpham-bcs commented 3 years ago

https://en.wikipedia.org/wiki/Area_codes_803_and_839#:~:text=Area%20codes%20803%20and%20839%20are%20telephone%20area%20codes%20in,of%20Columbia%2C%20the%20state%20capital.

Seems 839 area code was added May 2020. Does not appear to be valid for this lib.

use case

if err := libphonenumber.ParseToNumber(input, region, number); err != nil {
// 
        }
        if !libphonenumber.IsValidNumber(number) {
//
        }
tpham-bcs commented 3 years ago

Whoops, thought I was using an outdated version. Was not.