dev(ci): fix commit linter receiving empty summary
split-string is not side-effect free. It changes the match data (it uses regexp to split strings).
This commit is contained in:
parent
fb34b5e24c
commit
e9b13393eb
1 changed files with 2 additions and 2 deletions
|
@ -264,8 +264,8 @@
|
|||
(when (looking-at "^\\([a-zA-Z0-9_-]+\\)\\(!?\\)\\(?:(\\([^)]+\\))\\)?: \\([^\n]+\\)")
|
||||
(setq type (intern (match-string 1))
|
||||
bang (equal (match-string 2) "!")
|
||||
scopes (ignore-errors (split-string (match-string 3) ","))
|
||||
summary (match-string 4)))))
|
||||
summary (match-string 4)
|
||||
scopes (ignore-errors (split-string (match-string 3) ","))))))
|
||||
(unless (string-match-p "^\\(?:\\(?:fixup\\|squash\\)!\\|FIXUP\\|WIP\\) " subject)
|
||||
(dolist (fn doom-cli-commit-rules)
|
||||
(pcase (funcall fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue