浏览代码

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


正在加载...
取消
保存