]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/contri*: fix the Credits-to regex
authorDaniel Stenberg <daniel@haxx.se>
Sun, 17 May 2026 21:55:48 +0000 (23:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2026 05:53:52 +0000 (07:53 +0200)
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
scripts/contrithanks.sh

index d0ebd60f4681286d17a598850b1eb2758d36d09d..44dce7e2ab1fa16ebad2037fa18318da04ec1e04 100755 (executable)
@@ -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 | \
index b2e89f15886230d80d954618cb31607e6bd26d2d..2b85d14d083f893b17d68de6cd979fa3b7e6b4b4 100755 (executable)
@@ -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 | \