Selaa lähdekoodia

정규식 수정

ect (or 2du) 8 vuotta sitten
vanhempi
sitoutus
1e13bdfcb2
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      set_mark/start.py

+ 2 - 2
set_mark/start.py

@@ -589,7 +589,7 @@ def start(conn, data, title):
 
     # 표 처리
     while 1:
-        table = re.search('\n((?:(?:(?:(?:\|\|)+(?:(?:(?!\|\|).(?:\n)*)+))+)\|\|(?:\n)?)+)', data)
+        table = re.search('\n((?:(?:(?:(?:\|\|)+(?:(?:(?!\|\|).(?:\n)*)*))+)\|\|(?:\n)?)+)', data)
         if table:
             table = table.groups()[0]
             
@@ -631,7 +631,7 @@ def start(conn, data, title):
                 else:
                     break
 
-            data = re.sub('\n((?:(?:(?:(?:\|\|)+(?:(?:(?!\|\|).(?:\n)*)+))+)\|\|(?:\n)?)+)', table, data, 1)
+            data = re.sub('\n((?:(?:(?:(?:\|\|)+(?:(?:(?!\|\|).(?:\n)*)*))+)\|\|(?:\n)?)+)', table, data, 1)
         else:
             break