From c1fcbb63b2a4ce0d969220c1e868c756e5c61755 Mon Sep 17 00:00:00 2001 From: sunfuze Date: Sat, 9 Apr 2016 13:30:20 +0800 Subject: [PATCH] adjust: mobile number in china comsuming very quick, it is not vise to limit the last 8 number --- src/lib/isMobilePhone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js index 051a1517d..4d7f81e15 100644 --- a/src/lib/isMobilePhone.js +++ b/src/lib/isMobilePhone.js @@ -25,7 +25,7 @@ const phones = { 'ru-RU': /^(\+?7|8)?9\d{9}$/, 'tr-TR': /^(\+?90|0)?5\d{9}$/, 'vi-VN': /^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/, - 'zh-CN': /^(\+?0?86\-?)?((13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}|170[059]\d{7})$/, + 'zh-CN': /^(\+?0?86\-?)?1[345789]\d{9}$/, 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/, }; /* eslint-enable max-len */