releaser: Fix regexp
authorIskander (Alex) Sharipov <i.sharipov@corp.vk.com>
Tue, 12 Oct 2021 09:32:09 +0000 (12:32 +0300)
committerGitHub <noreply@github.com>
Tue, 12 Oct 2021 09:32:09 +0000 (11:32 +0200)
commitd7331aaa7ec8d314764a270edf970db71c4a3011
tree278ba2b9ace6e63d911f161871f5aac4957a7b65
parentcd4e67af182a1b3aa19db7609c7581c424e9310f
releaser: Fix regexp

Original regexp used a char class which caused the regexp to only
check 1 symbol instead of a substring like "See" and "Closes".
So it would match `e #x` instead of `See #x` and many other
weird combinations.

Tests were passing as they never checked against an input that
would confuse that regexp.

Found with go-critic static analyzer, `badRegexp` checker.
releaser/git.go
releaser/git_test.go