mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08: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
|
public class CreateBranch : Popup
|
||||||
{
|
{
|
||||||
[Required(ErrorMessage = "Branch name is required!")]
|
[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))]
|
[CustomValidation(typeof(CreateBranch), nameof(ValidateBranchName))]
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace SourceGit.ViewModels
|
||||||
public class GitFlowStart : Popup
|
public class GitFlowStart : Popup
|
||||||
{
|
{
|
||||||
[Required(ErrorMessage = "Name is required!!!")]
|
[Required(ErrorMessage = "Name is required!!!")]
|
||||||
[RegularExpression(@"^[\w\-/\.]+$", ErrorMessage = "Bad branch name format!")]
|
[RegularExpression(@"^[\w\-/\.#]+$", ErrorMessage = "Bad branch name format!")]
|
||||||
[CustomValidation(typeof(GitFlowStart), nameof(ValidateBranchName))]
|
[CustomValidation(typeof(GitFlowStart), nameof(ValidateBranchName))]
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace SourceGit.ViewModels
|
||||||
}
|
}
|
||||||
|
|
||||||
[Required(ErrorMessage = "Branch name is required!!!")]
|
[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))]
|
[CustomValidation(typeof(RenameBranch), nameof(ValidateBranchName))]
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue