diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-02-13 16:10:48 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-02-13 16:10:48 +0000 |
commit | b67049edab41e8714aec087b81d589fdb03a350b (patch) | |
tree | 1f25ce21c1ef393462d62b94e97948ee81b41e82 /interface-definitions | |
parent | 0732e89d561ff9606fa1b91e718d3243bdfa3ff7 (diff) | |
download | vyos-1x-b67049edab41e8714aec087b81d589fdb03a350b.tar.gz vyos-1x-b67049edab41e8714aec087b81d589fdb03a350b.zip |
T5064: Firewall fix RegEx for for domain-group
Improve RegEx for firewall domain-groups.
This domain group looks good, but the current RegEx validation
fils:
```
set firewall group domain-group a_aa
```
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/firewall.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index 662ba24ab..51c6f0e21 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -94,7 +94,7 @@ <properties> <help>Firewall domain-group</help> <constraint> - <regex>[a-zA-Z_][a-zA-Z0-9][\w\-\.]*</regex> + <regex>[a-zA-Z_][a-zA-Z0-9]?[\w\-\.]*</regex> </constraint> <constraintErrorMessage>Name of domain-group can only contain alpha-numeric letters, hyphen, underscores and not start with numeric</constraintErrorMessage> </properties> |