mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08: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…
Reference in a new issue