Skip to content

Commit 2c9c36d

Browse files
committed
enhance: support character '/' in tag name (#290)
1 parent c8b688c commit 2c9c36d

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
@@ -12,7 +12,7 @@ public object BasedOn
1212
}
1313

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

0 commit comments

Comments
 (0)