chore: Consider template string as invalid

This commit is contained in:
Suraj Shetty 2020-10-12 11:34:51 +05:30
parent b2ae8b16ae
commit 23bbbb1bbd

View file

@ -3,7 +3,7 @@ import sys
errors_encounter = 0
pattern = re.compile(r"_\(([\"']{,3})(?P<message>((?!\1).)*)\1(\s*,\s*context\s*=\s*([\"'])(?P<py_context>((?!\5).)*)\5)*(\s*,\s*(.)*?\s*(,\s*([\"'])(?P<js_context>((?!\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:]