diff --git a/scripts/gen-i18n.js b/scripts/gen-i18n.js index 2c718a7..0863071 100644 --- a/scripts/gen-i18n.js +++ b/scripts/gen-i18n.js @@ -166,6 +166,7 @@ function getTranslationsJs(file) { if (prop.key.type === 'Literal') { const tag = prop.key.value; // RegExp same as in src/languageHandler.js + // eslint-disable-next-line const regexp = new RegExp(`(<${tag}>(.*?)<\\/${tag}>|<${tag}>|<${tag}\\s*\\/>)`); if (!tKey.match(regexp)) { throw new Error(`No match for ${regexp} in ${tKey}`);