mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
enhance: support character '/' in tag name (#290)
This commit is contained in:
parent
c8b688c52d
commit
2c9c36d832
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ namespace SourceGit.ViewModels
|
||||||
}
|
}
|
||||||
|
|
||||||
[Required(ErrorMessage = "Tag name is required!")]
|
[Required(ErrorMessage = "Tag name is required!")]
|
||||||
[RegularExpression(@"^[\w\-\.]+$", ErrorMessage = "Bad tag name format!")]
|
[RegularExpression(@"^[^/]{1}[\w\-\./]*$", ErrorMessage = "Bad tag name format!")]
|
||||||
[CustomValidation(typeof(CreateTag), nameof(ValidateTagName))]
|
[CustomValidation(typeof(CreateTag), nameof(ValidateTagName))]
|
||||||
public string TagName
|
public string TagName
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue