Browse Source

fix: only match 1 python context string at most

version-14
Ankush Menat 3 years ago
parent
commit
cf69b7f084
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/translate.py

+ 1
- 1
frappe/translate.py View File

@@ -37,7 +37,7 @@ TRANSLATE_PATTERN = re.compile(
r"([\"'])" # start of context string identifier; 5th capture group
r"(?P<py_context>((?!\5).)*)" # capture context string till closing id is found
r"\5" # match context string closure
r")*" # match one or more context string (?wat this should be 0 or 1)
r")?" # match 0 or 1 context strings
# END: python context search

# BEGIN: JS context search


Loading…
Cancel
Save