mirror of
https://github.com/goharbor/harbor
synced 2025-04-21 00:13:39 +00:00
Escape the - with \- when it is a char of itself (#20892)
fixes #20891 Signed-off-by: stonezdj <stone.zhang@broadcom.com>
This commit is contained in:
parent
9d11de9706
commit
a946447cad
|
@ -21,7 +21,7 @@
|
||||||
name="create_project_name"
|
name="create_project_name"
|
||||||
class="clr-input input-width"
|
class="clr-input input-width"
|
||||||
required
|
required
|
||||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||||
#projectName
|
#projectName
|
||||||
autocomplete="off" />
|
autocomplete="off" />
|
||||||
<clr-icon
|
<clr-icon
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
id="ruleName"
|
id="ruleName"
|
||||||
size="35"
|
size="35"
|
||||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||||
required
|
required
|
||||||
maxlength="255"
|
maxlength="255"
|
||||||
formControlName="name"
|
formControlName="name"
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
id="name"
|
id="name"
|
||||||
[(ngModel)]="systemRobot.name"
|
[(ngModel)]="systemRobot.name"
|
||||||
required
|
required
|
||||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||||
maxLengthExt="255"
|
maxLengthExt="255"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
size="30"
|
size="30"
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
id="name"
|
id="name"
|
||||||
[(ngModel)]="robot.name"
|
[(ngModel)]="robot.name"
|
||||||
required
|
required
|
||||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||||
maxLengthExt="255"
|
maxLengthExt="255"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
size="30"
|
size="30"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user