Meta: Fix regex version check in the lint-prettier script

If your local version is 3.2.0, this check would errantly pass.
This commit is contained in:
Timothy Flynn 2024-11-06 11:59:46 -05:00 committed by Tim Flynn
parent f61a41d7a6
commit deb5947fc0
Notes: github-actions[bot] 2024-11-06 20:11:23 +00:00

View file

@ -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