瀏覽代碼

또 버그 수정

잉여개발기 (SPDV) 6 年之前
父節點
當前提交
a07a43cf43
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      route/tool/set_mark/tool.py

+ 2 - 2
route/tool/set_mark/tool.py

@@ -51,11 +51,11 @@ def link_fix(main_link):
     main_link = re.sub('^파일:', 'file:', main_link)
     main_link = re.sub('^분류:', 'category:', main_link)
 
-    other_link = re.search('[^\\\\]?(#.+)$', main_link)
+    other_link = re.search('[^\\\\]?(#[^#]+)$', main_link)
     if other_link:
         other_link = other_link.groups()[0]
 
-        main_link = re.sub('(#.+)$', '', main_link)
+        main_link = re.sub('(#[^#]+)$', '', main_link)
     else:
         other_link = ''