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:
parent
03c7b768e6
commit
4ab1b3cbf8
@ -8,7 +8,7 @@ const {
|
|||||||
} = require('./helpers');
|
} = require('./helpers');
|
||||||
|
|
||||||
const translationsFolder = path.resolve(__dirname, '..', 'translations');
|
const translationsFolder = path.resolve(__dirname, '..', 'translations');
|
||||||
const PATTERN = /(?<!\w)t`((?:[^`]|(?<=\\)`)+)`/g;
|
const PATTERN = /(?<!\w)t`([^`]+)`/g;
|
||||||
|
|
||||||
function shouldIgnore(p, ignoreList) {
|
function shouldIgnore(p, ignoreList) {
|
||||||
return ignoreList.includes(p.split(path.sep).at(-1));
|
return ignoreList.includes(p.split(path.sep).at(-1));
|
||||||
|
Loading…
Reference in New Issue
Block a user