Skip to content

Commit 263dcb4

Browse files
authored
fix: Use -iname and expressions instead of -iregex (tj#1094)
1 parent cc1c0e1 commit 263dcb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/git-authors

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ done
2323
if ! $LIST; then
2424
FILE=$1
2525
if [ -z "$FILE" ]; then
26-
FILE=$(find . -mindepth 1 -maxdepth 1 -iregex '.*\(authors\|contributors\).*' | head -n1)
26+
FILE=$(find . -mindepth 1 -maxdepth 1 \( -iname '*authors*' -o -iname '*contributors*' \) | head -n1)
2727
if [ -z "$FILE" ]; then
2828
FILE='AUTHORS'
2929
fi

bin/git-changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ main() {
553553
fi
554554

555555
if [[ -z "$changelog" ]]; then
556-
changelog="$(find . -mindepth 1 -maxdepth 1 -iregex '.*\(change\|history\).*' | head -n1)"
556+
changelog="$(find . -mindepth 1 -maxdepth 1 \( -iname '*change*' -o -iname '*history*' \) | head -n1)"
557557
if [[ -z "$changelog" ]]; then
558558
changelog="History.md";
559559
fi

0 commit comments

Comments
 (0)