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

렌더러 버그도 수정

Surplus_Up (2DU) пре 6 година
родитељ
комит
8bbbbc68fc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      route/tool/set_mark/namumark.py

+ 1 - 1
route/tool/set_mark/namumark.py

@@ -769,7 +769,7 @@ def namumark(conn, data, title, include_num):
     time_data = re.search(r'^([0-9]{4}-[0-9]{2}-[0-9]{2})', now_time)
     time = time_data.group(1)
     
-    macro_re = re.compile(r'\[([^[(]+)\(((?:(?!\)]).)+)\)\]')
+    macro_re = re.compile(r'\[([^[(]+)\(((?:(?!\[|\)]).)+)\)\]')
     macro_data = macro_re.findall(data)
     for i in macro_data:
         macro_name = i[0].lower()