Skip to content

Commit b46a2bd

Browse files
committed
Escape backslash in regex
1 parent 84274c7 commit b46a2bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

project/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
"post-commit": {
3535
Exe: "gtm",
3636
Command: "gtm commit --yes",
37-
RE: regexp.MustCompile(`(?s)[/,\,:,a-z,A-Z,0-9,$,-,_,=,(,),",., ]*gtm(.exe"|)\s+commit\s+--yes\.*`)},
37+
RE: regexp.MustCompile(`(?s)[/,\\,:,a-z,A-Z,0-9,$,-,_,=,(,),",., ]*gtm(.exe"|)\s+commit\s+--yes\.*`)},
3838
}
3939
// GitConfig is map of git configuration settings
4040
GitConfig = map[string]string{

0 commit comments

Comments
 (0)