From 23bbbb1bbddfd5ab0770f599589fbeda000819d5 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 12 Oct 2020 11:34:51 +0530 Subject: [PATCH] chore: Consider template string as invalid --- .github/helper/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/helper/translation.py b/.github/helper/translation.py index 5d33355a1b..ee04de9161 100644 --- a/.github/helper/translation.py +++ b/.github/helper/translation.py @@ -3,7 +3,7 @@ import sys errors_encounter = 0 pattern = re.compile(r"_\(([\"']{,3})(?P((?!\1).)*)\1(\s*,\s*context\s*=\s*([\"'])(?P((?!\5).)*)\5)*(\s*,\s*(.)*?\s*(,\s*([\"'])(?P((?!\11).)*)\11)*)*\)") -start_pattern = re.compile(r"_{1,2}\([\"']{1,3}") +start_pattern = re.compile(r"_{1,2}\([\"'`]{1,3}") # skip first argument files = sys.argv[1:]