Skip to content

Commit 9a9d244

Browse files
authored
[utilities] make pattern match more accurate (#15575)
1 parent 1d47130 commit 9a9d244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/change_sponsor_logo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cp "$IMAGE_FILE" "$OLD_STATIC_IMAGE"
5050
cp "$SPONSOR_FILE" "$OLD_SPONSOR_FILE"
5151

5252
# Find all events with this sponsor in years other than this year, excluding existing renames
53-
SPONSOR_REGEX="id:[ ]+$SPONSOR_NAME[ $]*"
53+
SPONSOR_REGEX="id:[ ]+$SPONSOR_NAME[ ]*$"
5454
pushd "$(gitroot)/data/events" > /dev/null
5555
EVENTS_TO_MODIFY=($(git ls-tree -r --name-only HEAD | xargs grep -E "$SPONSOR_REGEX" | grep -v 'before' | grep -v "^$(date +%Y)" | cut -d ':' -f 1))
5656

0 commit comments

Comments
 (0)