Skip to content

Commit

Permalink
fix: reduce misery, simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Feb 17, 2022
1 parent 03c7b76 commit 4ab1b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generateTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {
} = require('./helpers');

const translationsFolder = path.resolve(__dirname, '..', 'translations');
const PATTERN = /(?<!\w)t`((?:[^`]|(?<=\\)`)+)`/g;
const PATTERN = /(?<!\w)t`([^`]+)`/g;

function shouldIgnore(p, ignoreList) {
return ignoreList.includes(p.split(path.sep).at(-1));
Expand Down

0 comments on commit 4ab1b3c

Please sign in to comment.