From 2eaa508121f2038cd53ad98119c20c196a0c86b5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Oct 2021 14:25:31 +0200 Subject: [PATCH] dev(ci): fix false positive invalid trailers --- core/cli/ci.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cli/ci.el b/core/cli/ci.el index fa212c1e6..100f92c03 100644 --- a/core/cli/ci.el +++ b/core/cli/ci.el @@ -202,7 +202,7 @@ representing the current commit being checked against. See (lines ;; Scan BODY because invalid trailers won't be in TRAILERS. (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))))) (dolist (line lines) (unless (string-match-p (concat "^" key-re ":? [^ ]") line)