Browse Source

버그 수정 2

Surplus_Up (2DU) 7 năm trước cách đây
mục cha
commit
b0f5766568
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      app.py
  2. 1 1
      set_mark/namu.py

+ 1 - 1
app.py

@@ -1676,7 +1676,7 @@ def edit(name = None):
             if flask.request.args.get('section', None):
                 test_data = '\n' + re.sub('\r\n', '\n', new[0][0]) + '\n'   
                 
-                section_data = re.findall('((?:={1,6}) ?(?:(?:(?!={1,6}\n).)+) ?={1,6}\n(?:(?:(?!(?:={1,6}) ?(?:(?:(?!={1,6}\n).)+) ?={1,6}\n).)*\n*)*)\n', test_data)
+                section_data = re.findall('((?:={1,6}) ?(?:(?:(?!={1,6}\n).)+) ?={1,6}\n(?:(?:(?!(?:={1,6}) ?(?:(?:(?!={1,6}\n).)+) ?={1,6}\n).)*\n*)*)', test_data)
                 data = section_data[int(flask.request.args.get('section', None)) - 1]
             else:
                 data = new[0][0]

+ 1 - 1
set_mark/namu.py

@@ -492,7 +492,7 @@ def namu(conn, data, title, main_num):
     html_db = curs.fetchall()
 
     src_list = ["www.youtube.com", "serviceapi.nmv.naver.com", "tv.kakao.com", "www.google.com", "serviceapi.rmcnmv.naver.com"]
-    html_list = ['div', 'span', 'embed', 'iframe', 'ruby', 'rp', 'rt', 'b']
+    html_list = ['div', 'span', 'embed', 'iframe', 'ruby', 'rp', 'rt']
     
     html_data = re.findall('<(\/)?((?:(?!>| ).)+)( (?:(?:(?!>).)+)?)?>', data)
     for in_data in html_data: