mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-23 07:41:50 +00:00
fix: allow ALL ASN values in policy rule validation
This commit is contained in:
committed by
Owen
parent
a2882857ff
commit
3f37408dae
@@ -100,7 +100,9 @@ export function getResourceRuleValueValidationError(
|
||||
? null
|
||||
: "Invalid country code provided";
|
||||
case "ASN":
|
||||
return /^AS\d+$/i.test(value.trim())
|
||||
return /^AS\d+$/i.test(value.trim()) ||
|
||||
value.trim().toUpperCase() === "ALL" ||
|
||||
value.trim().toUpperCase() === "AS0"
|
||||
? null
|
||||
: "Invalid ASN provided";
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user