mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
enhance: allow using +
character in branch name (#1152)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
39f7f119dd
commit
ad9021e892
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ namespace SourceGit.ViewModels
|
|||
public class CreateBranch : Popup
|
||||
{
|
||||
[Required(ErrorMessage = "Branch name is required!")]
|
||||
[RegularExpression(@"^[\w \-/\.#]+$", ErrorMessage = "Bad branch name format!")]
|
||||
[RegularExpression(@"^[\w \-/\.#\+]+$", ErrorMessage = "Bad branch name format!")]
|
||||
[CustomValidation(typeof(CreateBranch), nameof(ValidateBranchName))]
|
||||
public string Name
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace SourceGit.ViewModels
|
|||
}
|
||||
|
||||
[Required(ErrorMessage = "Branch name is required!!!")]
|
||||
[RegularExpression(@"^[\w \-/\.#]+$", ErrorMessage = "Bad branch name format!")]
|
||||
[RegularExpression(@"^[\w \-/\.#\+]+$", ErrorMessage = "Bad branch name format!")]
|
||||
[CustomValidation(typeof(RenameBranch), nameof(ValidateBranchName))]
|
||||
public string Name
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue