File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace SourceGit.ViewModels
6
6
public class CreateBranch : Popup
7
7
{
8
8
[ Required ( ErrorMessage = "Branch name is required!" ) ]
9
- [ RegularExpression ( @"^[\w\-/\.]+$" , ErrorMessage = "Bad branch name format!" ) ]
9
+ [ RegularExpression ( @"^[\w\-/\.# ]+$" , ErrorMessage = "Bad branch name format!" ) ]
10
10
[ CustomValidation ( typeof ( CreateBranch ) , nameof ( ValidateBranchName ) ) ]
11
11
public string Name
12
12
{
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace SourceGit.ViewModels
6
6
public class GitFlowStart : Popup
7
7
{
8
8
[ Required ( ErrorMessage = "Name is required!!!" ) ]
9
- [ RegularExpression ( @"^[\w\-/\.]+$" , ErrorMessage = "Bad branch name format!" ) ]
9
+ [ RegularExpression ( @"^[\w\-/\.# ]+$" , ErrorMessage = "Bad branch name format!" ) ]
10
10
[ CustomValidation ( typeof ( GitFlowStart ) , nameof ( ValidateBranchName ) ) ]
11
11
public string Name
12
12
{
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public Models.Branch Target
12
12
}
13
13
14
14
[ Required ( ErrorMessage = "Branch name is required!!!" ) ]
15
- [ RegularExpression ( @"^[\w\-/\.]+$" , ErrorMessage = "Bad branch name format!" ) ]
15
+ [ RegularExpression ( @"^[\w\-/\.# ]+$" , ErrorMessage = "Bad branch name format!" ) ]
16
16
[ CustomValidation ( typeof ( RenameBranch ) , nameof ( ValidateBranchName ) ) ]
17
17
public string Name
18
18
{
You can’t perform that action at this time.
0 commit comments