소스 검색

렌더러 버그도 수정

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()