appease max line length linting rule

This commit is contained in:
Germain Souquet 2021-04-26 14:38:00 +01:00
parent d59384f3e7
commit c56aa9100f

View file

@ -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}`);