From deb5947fc01d83394ebca02723fd22d207af1666 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 6 Nov 2024 11:59:46 -0500 Subject: [PATCH] Meta: Fix regex version check in the lint-prettier script If your local version is 3.2.0, this check would errantly pass. --- Meta/lint-prettier.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/lint-prettier.sh b/Meta/lint-prettier.sh index 00915412d40..99b2e810c51 100755 --- a/Meta/lint-prettier.sh +++ b/Meta/lint-prettier.sh @@ -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