From 7eed36ac564bb1dbb9ffc1abb54e6d43e85ba1f6 Mon Sep 17 00:00:00 2001 From: Luk Date: Sun, 13 Oct 2024 20:49:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=BC=95=E7=94=A8=E6=9C=AC?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E7=9A=84=20i18n-land.js=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E4=BA=8E=20wo.i18n.landSet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n-tool.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i18n-tool.js b/i18n-tool.js index 91025c4..39c1e0d 100644 --- a/i18n-tool.js +++ b/i18n-tool.js @@ -1,3 +1,5 @@ +const landSet = require('./i18n-lands.js') + module.exports = { validate_phone ({ phone, format } = {}) { try { @@ -10,7 +12,6 @@ module.exports = { try { let [fullphone, itc, callnumber] = /^\+(\d{1,4})-(\d{7,12})$/.exec(phone) - let landSet = wo?.i18n?.landSet || wo?.ss?.i18n?.landSet || {} for (let land of Object.values(landSet)) { if (land.itc === itc) { if (land.phoneRegex) {