mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-10-06 11:02:41 +00:00
appease max line length linting rule
This commit is contained in:
parent
d59384f3e7
commit
c56aa9100f
1 changed files with 1 additions and 0 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue