Преглед изворни кода

fix: only match 1 python context string at most

version-14
Ankush Menat пре 3 година
родитељ
комит
cf69b7f084
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      frappe/translate.py

+ 1
- 1
frappe/translate.py Прегледај датотеку

@@ -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…
Откажи
Сачувај