mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-19 07:54:59 +01:00
appease max line length linting rule
This commit is contained in:
parent
d59384f3e7
commit
c56aa9100f
@ -166,6 +166,7 @@ function getTranslationsJs(file) {
|
|||||||
if (prop.key.type === 'Literal') {
|
if (prop.key.type === 'Literal') {
|
||||||
const tag = prop.key.value;
|
const tag = prop.key.value;
|
||||||
// RegExp same as in src/languageHandler.js
|
// RegExp same as in src/languageHandler.js
|
||||||
|
// eslint-disable-next-line
|
||||||
const regexp = new RegExp(`(<${tag}>(.*?)<\\/${tag}>|<${tag}>|<${tag}\\s*\\/>)`);
|
const regexp = new RegExp(`(<${tag}>(.*?)<\\/${tag}>|<${tag}>|<${tag}\\s*\\/>)`);
|
||||||
if (!tKey.match(regexp)) {
|
if (!tKey.match(regexp)) {
|
||||||
throw new Error(`No match for ${regexp} in ${tKey}`);
|
throw new Error(`No match for ${regexp} in ${tKey}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user