Kaynağa Gözat

링크 안 꼬이게

2DU 8 yıl önce
ebeveyn
işleme
94bd1c417a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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])):