🐛 修复名片解析异常

close #110
This commit is contained in:
目棃
2024-05-15 01:26:55 +08:00
parent a4e0e59172
commit 3ba6584b1e

View File

@@ -95,7 +95,7 @@ function onCancel() {
function parseNamecard(desc: string): string {
let array = [];
if (desc.startsWith("名片纹饰。「")) {
if (desc.startsWith("名片纹饰。「") && desc.endsWith("」")) {
array.push("名片纹饰。");
const reg = /「.+?」/g;
const match = desc.match(reg);