From 6d570b68e467bf8d83167e21c00321af1ed72fba Mon Sep 17 00:00:00 2001 From: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:28:17 +0100 Subject: [PATCH] fix(regex): Allow typos with multiple spaces in signed-off-by line Signed-off-by: Joas Schilling --- lib/dco.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dco.js b/lib/dco.js index c8c6120..3b9bae6 100644 --- a/lib/dco.js +++ b/lib/dco.js @@ -119,7 +119,7 @@ function getSignoffs( allCommits, allowRemediationCommits ) { - const regex = /^Signed-off-by: (.*) <(.*)>\s*$/gim; + const regex = /^Signed-off-by:\s+(.*?)\s+<(.*)>\s*$/gim; const matches = []; let match; while ((match = regex.exec(comparisonCommit.message)) !== null) {