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) {