Skip to content

Commit

Permalink
xml: T5738: Reuse predefined regex constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
indrajitr committed Jan 9, 2025
1 parent fe50656 commit be7fcf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interface-definitions/container.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<properties>
<help>Add custom environment variables</help>
<constraint>
<regex>[-_a-zA-Z0-9]+</regex>
#include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
</constraint>
<constraintErrorMessage>Environment variable name must be alphanumeric and can contain hyphen and underscores</constraintErrorMessage>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion interface-definitions/include/haproxy/rule-backend.xml.i
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<properties>
<help>Server name</help>
<constraint>
<regex>[-_a-zA-Z0-9]+</regex>
#include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
</constraint>
<constraintErrorMessage>Server name must be alphanumeric and can contain hyphen and underscores</constraintErrorMessage>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion interface-definitions/include/haproxy/rule-frontend.xml.i
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<properties>
<help>Backend name</help>
<constraint>
<regex>[-_a-zA-Z0-9]+</regex>
#include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
</constraint>
<constraintErrorMessage>Server name must be alphanumeric and can contain hyphen and underscores</constraintErrorMessage>
</properties>
Expand Down

0 comments on commit be7fcf6

Please sign in to comment.