diff --git a/src/ViewModels/CreateTag.cs b/src/ViewModels/CreateTag.cs index 0a7d7440..498218cb 100644 --- a/src/ViewModels/CreateTag.cs +++ b/src/ViewModels/CreateTag.cs @@ -12,7 +12,7 @@ namespace SourceGit.ViewModels } [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))] public string TagName {