Ver código fonte

사소한 문법 수정

Surplus_Up (2DU) 6 anos atrás
pai
commit
5ff3455672
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      route/tool/set_mark/namumark.py

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

@@ -512,6 +512,7 @@ def namumark(conn, data, title, include_num):
     backlink = []
     end_data = {}
 
+    data = re.sub(r'@([^=@]+)=(?P<in>[^=@]+)@', '\g<in>', data)
     data = re.sub(r'<math>(?P<in>(?:(?!<\/math>).)+)<\/math>', '[math(\g<in>)]', data)
 
     data = html.escape(data)