mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-23 07:41:50 +00:00
test: add normalized ASN validation coverage
This commit is contained in:
committed by
Owen
parent
de48a0529e
commit
e5e7b79712
@@ -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"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user