From 240408a725429b021d0e7785d12f06a20fc019e8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 17 May 2026 23:55:48 +0200 Subject: [PATCH] scripts/contri*: fix the Credits-to regex On my suggestion, the regex turned up wrong when looking for Credits-to in git logs. This adjustment allows the leading spaces. Follow-up to 64adc43a6ea07e4d807bbf9b5 Closes #21655 --- scripts/contributors.sh | 2 +- scripts/contrithanks.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/contributors.sh b/scripts/contributors.sh index d0ebd60f46..44dce7e2ab 100755 --- a/scripts/contributors.sh +++ b/scripts/contributors.sh @@ -62,7 +62,7 @@ CURLWWW="${CURLWWW:-../curl-www}" git -C "$CURLWWW" log --pretty=full --use-mailmap "$start..HEAD" fi } | \ - grep -Eai '(^Author|^Commit|^ +[a-z-]+-by|^Credits-to):' | \ + grep -Eai '(^Author|^Commit|^ +[a-z-]+-by|^ +Credits-to):' | \ cut -d: -f2- | \ cut '-d(' -f1 | \ cut '-d<' -f1 | \ diff --git a/scripts/contrithanks.sh b/scripts/contrithanks.sh index b2e89f1588..2b85d14d08 100755 --- a/scripts/contrithanks.sh +++ b/scripts/contrithanks.sh @@ -62,7 +62,7 @@ tail -n +7 ./docs/THANKS | sed 's/ github/ github/i' > $rand git -C "$CURLWWW" log --use-mailmap "$start..HEAD" fi } | \ - grep -Eai '(^Author|^Commit|^ +[a-z-]+-by|^Credits-to):' | \ + grep -Eai '(^Author|^Commit|^ +[a-z-]+-by|^ +Credits-to):' | \ cut -d: -f2- | \ cut '-d(' -f1 | \ cut '-d<' -f1 | \