mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2025-10-13 10:38:33 +00:00
同步插件修改
This commit is contained in:
2
psd2ui-tools/dist/index.js
vendored
2
psd2ui-tools/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -245,6 +245,12 @@ export abstract class PsdLayer {
|
||||
if (!text || !PsdLayer.isPinyin) {
|
||||
return text;
|
||||
}
|
||||
|
||||
let reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
|
||||
if (!reg.test(text)) {
|
||||
return text;
|
||||
}
|
||||
|
||||
let names = pinyin(text, {
|
||||
toneType: "none",
|
||||
type: "array"
|
||||
|
Reference in New Issue
Block a user