Ver Fonte

링크 안 꼬이게

2DU há 8 anos atrás
pai
commit
94bd1c417a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      mark.py

+ 1 - 1
mark.py

@@ -659,7 +659,7 @@ def namumark(title, data, num, in_c):
 
     data = re.sub('\[\[(?P<in>\/[^\]|]*)(?P<out>\|(?:[^\]]*))?\]\]', '[[' + title + '\g<in>\g<out>]]', data)
                 
-    link = re.compile('\[\[((?:(?!\]\]|\|).)*)(?:\|((?:(?!\]\]).)*))?\]\]')
+    link = re.compile('\[\[((?:(?!\[\[|\]\]|\|).)*)(?:\|((?:(?!\[\[|\]\]).)*))?\]\]')
     d_da = link.findall(data)
     for d in d_da:
         if(re.search('^(?:파일|외부):', d[0])):