Skip to content

Commit

Permalink
fix: Use -iname and expressions instead of -iregex (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Oct 24, 2023
1 parent cc1c0e1 commit 263dcb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/git-authors
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ done
if ! $LIST; then
FILE=$1
if [ -z "$FILE" ]; then
FILE=$(find . -mindepth 1 -maxdepth 1 -iregex '.*\(authors\|contributors\).*' | head -n1)
FILE=$(find . -mindepth 1 -maxdepth 1 \( -iname '*authors*' -o -iname '*contributors*' \) | head -n1)
if [ -z "$FILE" ]; then
FILE='AUTHORS'
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/git-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ main() {
fi

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

0 comments on commit 263dcb4

Please sign in to comment.