We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7b9f9 commit aadb817Copy full SHA for aadb817
src/lib/isMobilePhone.js
@@ -137,7 +137,7 @@ const phones = {
137
'pt-BR': /^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,
138
'pt-PT': /^(\+?351)?9[1236]\d{7}$/,
139
'pt-AO': /^(\+244)\d{9}$/,
140
- 'ro-MD': /^(\+?373|0)((((6([0126789]))|(7([89])))\d{6})|(77([4789])\d{5}))$/,
+ 'ro-MD': /^(\+?373|0)(?:(?:6[0126789]|7[89])\d{6}|(?:760|767)\d{4}|77[4789]\d{5})$/,
141
'ro-RO': /^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,
142
'ru-RU': /^(\+?7|8)?9\d{9}$/,
143
'si-LK': /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
0 commit comments