Commit 231fd68e authored by liujiangnan's avatar liujiangnan

feat: 俄罗斯手机号支持

parent a52e2364
...@@ -153,7 +153,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -153,7 +153,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
checkPhone(phone) { checkPhone(phone) {
const test = /^[1]([3-9])[0-9]{9}$/; let test = /^[1]([3-9])[0-9]{9}$/;
if(this.localLanguage == "ru-ru") {
test = /^([3-9])[0-9]{9}$/;
}
if (!test.test(phone)) { if (!test.test(phone)) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment