check_commit.sh: Ignore word paste

This commit is contained in:
Tony F 2024-02-23 17:58:08 -06:00 committed by Dan Smith
parent 11581317ae
commit fbcca4a9d1

View File

@ -34,7 +34,7 @@ if grep -E '\wfuture\w' added_lines; then
fail No new uses of future
fi
if grep -E '(from|import).*past' added_lines; then
if grep -E '(from|import).*past(?!e)' added_lines; then
fail Use of past library not allowed
fi