From decc62e2ab75f45db1df022fe13780c2d0d2560d Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Fri, 30 Oct 2020 13:21:47 +0100 Subject: [PATCH] fix: start_pattern --- .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 340f4f8772d..3d9740eeb3e 100644 --- a/.github/helper/translation.py +++ b/.github/helper/translation.py @@ -4,7 +4,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)*)*\)") words_pattern = re.compile(r"_{1,2}\([\"'`]{1,3}.*?[a-zA-Z]") -start_pattern = re.compile(r"_{1,2}\([f\"'`]{1,3}") +start_pattern = re.compile(r"_{1,2}\([\"'`]{1,3}") f_string_pattern = re.compile(r"_\(f[\"']") starts_with_f_pattern = re.compile(r"_\(f")