mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
dev(ci): fix false positive invalid trailers
This commit is contained in:
@ -202,7 +202,7 @@ representing the current commit being checked against. See
|
|||||||
(lines
|
(lines
|
||||||
;; Scan BODY because invalid trailers won't be in TRAILERS.
|
;; Scan BODY because invalid trailers won't be in TRAILERS.
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(and (string-match "\n\\(\n[a-zA-Z-]+:? [^ ][^\n]+\\)+\n*\\'" body)
|
(and (string-match "\n\\(\n[a-zA-Z][a-zA-Z-]*:? [^ ][^\n]+\\)+\n+\\'" body)
|
||||||
(split-string (match-string 0 body) "\n" t)))))
|
(split-string (match-string 0 body) "\n" t)))))
|
||||||
(dolist (line lines)
|
(dolist (line lines)
|
||||||
(unless (string-match-p (concat "^" key-re ":? [^ ]") line)
|
(unless (string-match-p (concat "^" key-re ":? [^ ]") line)
|
||||||
|
Reference in New Issue
Block a user