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