Updates
This commit is contained in:
parent
88eef42b01
commit
a72fe3a991
2 changed files with 2 additions and 4 deletions
|
@ -118,7 +118,7 @@ function parseSpec(specStr) {
|
|||
}
|
||||
|
||||
// see http://blog.stevenlevithan.com/archives/match-quoted-string
|
||||
const tMatcher = /(^|[ {+(=])((?:tUI|tLog|t|tMark)\s*\(\s*(?:\/\*(.*?)\*\/)?\s*)(["'])((?:(?!\1)[^\\]|\\.)*)(\4)/;
|
||||
const tMatcher = /(^|[ {+(=])((?:tUI|tLog|t|tMark)\s*\(\s*(?:\/\*(.*?)\*\/)?\s*)(["'])((?:(?!\4)[^\\]|\\.)*)(\4)/;
|
||||
const transMatcher = /(\/\*(.*?)\*\/\s*)?(\<Trans[ >][\s\S]*?\<\/Trans\>)/;
|
||||
|
||||
const jsxParser = acorn.Parser.extend(acornJsx());
|
||||
|
@ -277,6 +277,7 @@ function run() {
|
|||
fs.writeFileSync(localeFile, JSON.stringify(resDict, null, 2));
|
||||
}
|
||||
}
|
||||
processFile('../client/src/templates/helpers.js');
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue