2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

fix: reduce misery, simplify regex

This commit is contained in:
18alantom 2022-02-17 18:01:03 +05:30
parent 03c7b768e6
commit 4ab1b3cbf8

View File

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