fix(work-record): normalize underscore import labels

This commit is contained in:
WuYongJie 2026-07-24 14:03:59 +08:00
parent 67a0efc0a5
commit 9ed61a8a14
2 changed files with 6 additions and 1 deletions

View File

@ -32,5 +32,10 @@ describe("work-record import normalization", () => {
).toBe(
getWorkRecordImportScoreRuleKey("编码(附件上传下单表)+上传条码", "制作下单表"),
);
expect(
getWorkRecordImportScoreRuleKey("编码_附件上传下单表_上传条码", "运营/采购需求内的分款"),
).toBe(
getWorkRecordImportScoreRuleKey("编码(附件上传下单表)+上传条码", "运营/采购需求内的分款"),
);
});
});

View File

@ -33,7 +33,7 @@ export function normalizeWorkRecordImportDate(value: unknown) {
}
export function normalizeWorkRecordImportLabel(value: unknown) {
return normalizeImportText(value).replace(/[\s/+*()]/g, "");
return normalizeImportText(value).replace(/[\s/_+*()]/g, "");
}
export function getWorkRecordImportScoreRuleKey(