Parcourir la source

또 버그 수정

잉여개발기 (SPDV) il y a 6 ans
Parent
commit
4a30353342
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 = ''