From 49c427877e2f2346f68bd5e7be11365ce65c9fbb Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Mon, 12 Oct 2020 23:13:45 -0400
Subject: [PATCH] Regex apparently needs escaping

---
 sanityCheck.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sanityCheck.sh b/sanityCheck.sh
index 4c4fc5c799a..fdd53819e2d 100755
--- a/sanityCheck.sh
+++ b/sanityCheck.sh
@@ -114,9 +114,9 @@ $GREP "span class=[^\"\']" -- src/*.js ':!src/001-lib/Jquery/Jquery.js' | myprin
 	$GREP "\$\(PC\|activeSlave\|slaves\|tanks\)[.][^a-zA-Z]" | myprint "UnexpectedCharAfterDot"
 )
 # Check for lines with only "let"
-$GREP [^A-Za-z]let(\r|\n) | myprint "WrongLetStyle"
+$GREP '[^A-Za-z]let(\r|\n)' | myprint "WrongLetStyle"
 # Check for lines with only "const"
-$GREP const(\r|\n) | myprint "WrongConstStyle"
+$GREP 'const(\r|\n)' | myprint "WrongConstStyle"
 
 # Check that all the tags are properly opened and closed & a lot of other stuff
 java -jar devTools/javaSanityCheck/SanityCheck.jar
-- 
GitLab