From c4dadc00bc27ecf3eb622128162ad7eea06391e2 Mon Sep 17 00:00:00 2001 From: Viktor Pentyukhov Date: Wed, 8 Jan 2025 15:24:52 +0300 Subject: [PATCH] Fixed Lint check with regular expressions --- .github/scripts/is_autogenerated_file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/is_autogenerated_file.sh b/.github/scripts/is_autogenerated_file.sh index 99c010945..09604a83d 100755 --- a/.github/scripts/is_autogenerated_file.sh +++ b/.github/scripts/is_autogenerated_file.sh @@ -4,7 +4,7 @@ FILEPATH="$1" grep -q "Code generated by gtrace. DO NOT EDIT." "$FILEPATH" && echo YES && exit 0 grep -q "Code generated by MockGen. DO NOT EDIT." "$FILEPATH" && echo YES && exit 0 -grep -q "Code generated from .*\(YQLv1Antlr4.g4\|SQLv1Antlr4.g4\) by ANTLR 4\.[0-9]\+\.[0-9]\+\.[0-9]\+.* DO NOT EDIT." "$FILEPATH" && echo YES && exit 0 +grep -qE "Code generated from (YQLv1Antlr4.g4|SQLv1Antlr4.g4) by ANTLR [4-9]+\.[0-9]+\.[0-9]+\. DO NOT EDIT." "$FILEPATH" && echo YES && exit 0 echo NO exit 0