mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
enhance: allow #
character in branch name (#271)
This commit is contained in:
parent
91801cff69
commit
9f09b8e326
3 changed files with 3 additions and 3 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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue