diff options
Diffstat (limited to 'git-codereview')
| -rw-r--r-- | git-codereview/change.go | 2 | ||||
| -rw-r--r-- | git-codereview/change_test.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/git-codereview/change.go b/git-codereview/change.go index 3bdcd75..65f503f 100644 --- a/git-codereview/change.go +++ b/git-codereview/change.go @@ -256,7 +256,7 @@ func parseCL(arg string) (cl, patchset string, ok bool) { return m[1], m[2], true } -var messageRE = regexp.MustCompile(`^(\[[a-zA-Z0-9.-]+\] )?[a-zA-Z0-9-/,. ]+: `) +var messageRE = regexp.MustCompile(`^(\[[a-zA-Z0-9.-]+\] )?[a-zA-Z0-9-_/,. ]+: `) func commitMessageOK() bool { body := cmdOutput("git", "log", "--format=format:%B", "-n", "1") diff --git a/git-codereview/change_test.go b/git-codereview/change_test.go index cd0cbcc..500ae69 100644 --- a/git-codereview/change_test.go +++ b/git-codereview/change_test.go @@ -80,6 +80,7 @@ func TestMessageRE(t *testing.T) { {"math/rand: make randomer", true}, {"math/rand, crypto/rand: fix random sources", true}, {"cmd/internal/rsc.io/x86: update from external repo", true}, + {"_content/blog: fix typos", true}, } { got := messageRE.MatchString(c.in) if got != c.want { |
