Quellcode durchsuchen

정규식 수정

ect (or 2du) vor 8 Jahren
Ursprung
Commit
1e13bdfcb2
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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