Skip to content

Commit

Permalink
Meta: Fix regex version check in the lint-prettier script
Browse files Browse the repository at this point in the history
If your local version is 3.2.0, this check would errantly pass.
  • Loading branch information
trflynn89 committed Nov 6, 2024
1 parent f61a41d commit deb5947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meta/lint-prettier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (( ${#files[@]} )); then
exit 1
fi

if ! prettier --version | grep -qF '2.' ; then
if ! prettier --version | grep -q '\b2\.' ; then
echo "You are using '$(prettier --version)', which appears to not be prettier 2."
exit 1
fi
Expand Down

0 comments on commit deb5947

Please sign in to comment.