2DU 8 лет назад
Родитель
Сommit
94bd1c417a
1 измененных файлов с 1 добавлено и 1 удалено
  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])):