同步插件修改

This commit is contained in:
onvia
2023-07-31 09:26:24 +08:00
parent 40ee90491e
commit 6e294f7a19
5 changed files with 195 additions and 172 deletions

View File

@@ -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"