Automattic / node-phone

With a given country and phone number, validate and format the phone number to E.164 standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Lithuania phone codes:

kkMatt opened this issue · comments

This code is missing in the normalize method, similar for RUS:

            // comment originated from node-phone:
            // if input 860010020, LT, remove the 8
            if ( "LTU" == $alpha3 && 9 == strlen( $validPhoneNumber ) && preg_match( "/^86/", $validPhoneNumber ) ) {
                $validPhoneNumber = preg_replace("/^8+/", "", $validPhoneNumber );
            }