Skip to content

Commit 96fbe38

Browse files
committed
enhance: allows to use + in tag name (#1970)
Signed-off-by: leo <[email protected]>
1 parent cfca2aa commit 96fbe38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/CreateTag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public object BasedOn
1313
}
1414

1515
[Required(ErrorMessage = "Tag name is required!")]
16-
[RegularExpression(@"^(?!\.)(?!/)(?!.*\.$)(?!.*/$)(?!.*\.\.)[\w\-\./]+$", ErrorMessage = "Bad tag name format!")]
16+
[RegularExpression(@"^(?!\.)(?!/)(?!.*\.$)(?!.*/$)(?!.*\.\.)[\w\-\+\./]+$", ErrorMessage = "Bad tag name format!")]
1717
[CustomValidation(typeof(CreateTag), nameof(ValidateTagName))]
1818
public string TagName
1919
{

0 commit comments

Comments
 (0)