Skip to content

Commit

Permalink
T7092: Regex for registry location
Browse files Browse the repository at this point in the history
  • Loading branch information
sskaje committed Jan 30, 2025
1 parent d02a551 commit 4a1ebc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interface-definitions/container.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,10 @@
</leafNode>
<leafNode name="mirror">
<properties>
<help>Registry mirror, use host:port</help>
<help>Registry mirror, use host[:port][/path]</help>
<constraint>
<regex>^(?:[[:alnum:]-]+(?:\.[[:alnum:]-]+)*|(?:[[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}|\[[[:xdigit:]:]+])(?::[[:digit:]]{1,5})?(?:\/[^[:space:]?#]*)?$</regex>
</constraint>
</properties>
</leafNode>
</children>
Expand Down

0 comments on commit 4a1ebc4

Please sign in to comment.