ttacon / libphonenumber

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

Support new mobile number (195) for CN #96

Closed hfxy-1981 closed 3 years ago

hfxy-1981 commented 3 years ago

As the new type of mobile phone number (195****) was released last year for China mainland, the regular expression used to validate the China mainland mobile phone number should be changed accordingly. The regular expression changes from "1740[0-5]\d{6}|1(?:[38]\d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[189])\d{8}" to "1740[0-5]\d{6}|1(?:[38]\d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[1589])\d{8}"

hfxy-1981 commented 3 years ago

@ttacon Please help review the PR. Thanks a lot in advance!

hfxy-1981 commented 3 years ago

@ttacon Please help merge the PR. Thanks a lot!

ttacon commented 3 years ago

LGTM

ttacon commented 3 years ago

Released as v1.2.0