From be58ca2578a30a8960bc42244908cdb7d1556d45 Mon Sep 17 00:00:00 2001 From: gaokaiyue Date: Sun, 8 Dec 2024 16:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=92=88=E5=AF=B9''=E4=B8=AD?= =?UTF-8?q?=E5=90=AB=E6=9C=89=E7=9A=84=E7=9B=B8=E5=90=8C=E8=BD=AC=E4=B9=89?= =?UTF-8?q?=E5=BC=95=E5=8F=B7=EF=BC=88=E5=8D=B3\'=EF=BC=89=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=AF=86=E5=88=AB=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=8C=85=E8=A3=B9=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=88=E5=8F=8C=E5=BC=95=E5=8F=B7=E5=90=8C=E7=90=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/zh-wrap/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/zh-wrap/index.js b/bin/zh-wrap/index.js index c03a56d..d3df1d8 100644 --- a/bin/zh-wrap/index.js +++ b/bin/zh-wrap/index.js @@ -241,7 +241,7 @@ const attrReg = /([@:a-zA-Z_][-a-zA-Z0-9_.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"'])*)") // 前后非空白,这里必须是三个字符 const nonPreSubWhiteReg = /\S.+\S/ // 国际化字符串,被单引号或者双引号包裹,内容中文开头 -const i18nStrReg = /"([^"{}\n]*[^\x00-\xff]+[^"{}\n]*)"|'([^'{}\n]*[^\x00-\xff]+[^'{}\n]*)'/g +const i18nStrReg = /"((?:[^"{}\n]|\\.)*[^\x00-\xff]+(?:[^"{}\n\\]|\\.)*)"|'((?:[^'{}\n]|\\.)*[^\x00-\xff]+(?:[^'{}\n\\]|\\.)*)'/g // 国际化字符串,被反引号包裹,内容中文开头 const i18nStrRegForBacktick = /`([^`\n]*[^\x00-\xff]+[^`\n]*)`/g