Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Should `revertPattern` in angular preset also match regular revert format? #348
/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./
and the one in
/^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./
The Commit Message Guidelines mention:
$ git commit -m "feat: some feature" [master 5e817ec] feat: some feature $ git revert 5e817ec [master 3881a12] Revert "feat: some feature" $ git log -n 1 --pretty='%B' Revert "feat: some feature" This reverts commit 5e817ec4022b7ea1406ad9864e8e124fe94be23e.
As a result when using the
To solve this problem we could change
/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./
so both format would be matched.