fix: correct material name type keyword matching logic

Reverse the inclusion check to properly match when materialName contains typeKeyword.materialName (e.g., "ABC123_SPECIAL" contains "ABC123").

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-03-02 16:20:11 +08:00
parent 11aec6d238
commit 982fb8fde6

View File

@@ -340,7 +340,7 @@ export function registerValidationHandlers(): void {
for (const typeKeyword of typeKeywords) {
if (
typeKeyword.materialName &&
typeKeyword.materialName.includes(materialName)
materialName.includes(typeKeyword.materialName)
) {
matchedTypeKeyword = typeKeyword.materialName
managerName = typeKeyword.managerName