This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Update 05/07/2019 | |
| * | |
| * Regex Vietnamese's mobile phone number | |
| */ | |
| export const REGEX_PHONE = /(086|096|097|098|032|033|034|035|036|037|038|039|089|090|093|070|079|077|076|078|088|091|094|083|084|085|081|082|092|056|058|099|059)+([0-9]{7})\b/ | |
| export function isVNPhone(number) { | |
| return REGEX_PHONE.test(number) | |
| } |