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) {