test: add normalized ASN validation coverage

This commit is contained in:
copilot-swe-agent[bot]
2026-06-16 23:48:28 +00:00
committed by Owen
parent de48a0529e
commit e5e7b79712
3 changed files with 17 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ export function createPolicyRuleValueSchema(t: TranslateFn, match: string) {
(value) => {
const normalizedValue = value.trim().toUpperCase();
return (
/^AS\d+$/i.test(normalizedValue) ||
/^AS\d+$/.test(normalizedValue) ||
normalizedValue === "ALL" ||
normalizedValue === "AS0"
);