fix: complete V09 financial diagnostic coverage in isolated QA

This commit is contained in:
2026-11-21 23:15:58 +02:00
parent 84018e3f25
commit 1349952d0f
36 changed files with 1245 additions and 29 deletions
+11 -1
View File
@@ -136,9 +136,19 @@ export function correctionFieldHints(
]),
];
}
export function fieldLabelMatches(label: string, hint: string): boolean {
export function fieldLabelMatches(
label: string,
hint: string,
availableLabels?: string[] | Set<string>,
): boolean {
const a = normaliseFieldLabel(label),
b = normaliseFieldLabel(hint);
if (
availableLabels instanceof Set
? availableLabels.has(b)
: availableLabels?.some((value) => normaliseFieldLabel(value) === b)
)
return a === b;
return (
!!a &&
!!b &&