mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 09:08:26 +01: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"
|
||||
class="clr-input input-width"
|
||||
required
|
||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
||||
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||
#projectName
|
||||
autocomplete="off" />
|
||||
<clr-icon
|
||||
|
@ -26,7 +26,7 @@
|
||||
type="text"
|
||||
id="ruleName"
|
||||
size="35"
|
||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
||||
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||
required
|
||||
maxlength="255"
|
||||
formControlName="name"
|
||||
|
@ -70,7 +70,7 @@
|
||||
id="name"
|
||||
[(ngModel)]="systemRobot.name"
|
||||
required
|
||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
||||
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||
maxLengthExt="255"
|
||||
autocomplete="off"
|
||||
size="30"
|
||||
|
@ -73,7 +73,7 @@
|
||||
id="name"
|
||||
[(ngModel)]="robot.name"
|
||||
required
|
||||
pattern="^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
||||
pattern="^[a-z0-9]+(?:[._\-][a-z0-9]+)*$"
|
||||
maxLengthExt="255"
|
||||
autocomplete="off"
|
||||
size="30"
|
||||
|
Loading…
Reference in New Issue
Block a user