From 97d8af35ffee0ce158851d0a09a099e15a3b9ee8 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 14 Mar 2023 21:04:21 -0700 Subject: [PATCH] Avoid confusing __( for _( in check_commit --- tools/check_commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_commit.sh b/tools/check_commit.sh index 45d9df27..71aa2359 100755 --- a/tools/check_commit.sh +++ b/tools/check_commit.sh @@ -41,7 +41,7 @@ if grep -E 'MemoryMap\(' added_lines; then fail New uses of MemoryMap should be MemoryMapBytes fi -if grep -E "_\([^\"']" added_lines; then +if grep -E "[^_]_\([^\"']" added_lines; then fail 'Translated strings must be literals!' fi