Skip to content

Commit

Permalink
phone number validation for Brunei (ms-BN)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitnairtech committed Oct 23, 2021
1 parent 13651ea commit 4fbb548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const phones = {
'vi-VN': /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
'zh-CN': /^((\+|00)86)?1([3456789][0-9]|4[579]|6[2567]|7[01235678]|9[012356789])[0-9]{8}$/,
'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
'ms-BN': /^(\+673)?[2|7|8]\d{6}$/,
};
/* eslint-enable max-len */

Expand Down

0 comments on commit 4fbb548

Please sign in to comment.