Parcourir la source

잘 못 된 문법 수정

2DU il y a 9 ans
Parent
commit
acbe19edf7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -242,7 +242,7 @@ def namumark(title, data):
     data = re.sub("##\s?(?P<in>[^\n]*)\n", "<div style='display:none;'>\g<in></div>", data);
     
     while True:
-        m = re.search("\[\[파일:((?:(?!\]\]|\?).)*)(?:\?((?:(?!\]\]).)*))?\]\]", data)
+        m = re.search("\[\[파일:((?:(?!\]\]|\|).)*)(?:\|((?:(?!\]\]).)*))?\]\]", data)
         if(m):
             c = m.groups()
             if(c[1]):