Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/zh-wrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down