This commit is contained in:
wxzhang 2022-02-22 17:45:23 +08:00
parent 1e4f95ad01
commit eb6c3a292d

View File

@ -4,6 +4,7 @@
const through2 = require('through2') const through2 = require('through2')
const deepmerge = require("deepmerge") const deepmerge = require("deepmerge")
const path = require('path')
// 捕获翻译函数的表达式 // 捕获翻译函数的表达式
const DefaultTranslateMatcher = /\bt\(\s*("|'){1}(?:((?<namespace>\w+):))?(?<text>.*?)(((\1\s*\)){1})|((\1){1}\s*(,(\w|\d|(?:\{.*\})|(?:\[.*\])|([\"\'\(].*[\"\'\)]))*)*\s*\)))/gm const DefaultTranslateMatcher = /\bt\(\s*("|'){1}(?:((?<namespace>\w+):))?(?<text>.*?)(((\1\s*\)){1})|((\1){1}\s*(,(\w|\d|(?:\{.*\})|(?:\[.*\])|([\"\'\(].*[\"\'\)]))*)*\s*\)))/gm