fix(tests(nanonets)): allow / when normalizing invoice strings in tests

This commit is contained in:
2026-01-20 04:15:45 +00:00
parent 2bdcc74df0
commit 74a5b37e92
2 changed files with 7 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ function extractInvoiceNumber(s: string | undefined): string {
const match = clean.match(pattern);
if (match) return match[1];
}
return clean.replace(/[^A-Z0-9-]/gi, '').trim() || clean;
return clean.replace(/[^A-Z0-9\/-]/gi, '').trim() || clean;
}
/**