Tuchuanhuhuhu commited on
Commit
6d9a18c
1 Parent(s): 70ec742

改进HTML检测逻辑

Browse files
Files changed (1) hide show
  1. overwrites.py +1 -1
overwrites.py CHANGED
@@ -30,7 +30,7 @@ def postprocess(
30
  """
31
  if y is None or y == []:
32
  return []
33
- tag_regex = re.compile(r"<\w+>[^<]+</\w+>")
34
  if tag_regex.search(y[-1][1]):
35
  y[-1] = (y[-1][0].replace("\n", "<br>"), y[-1][1])
36
  else:
 
30
  """
31
  if y is None or y == []:
32
  return []
33
+ tag_regex = re.compile(r"^<\w+>[^<]+</\w+>")
34
  if tag_regex.search(y[-1][1]):
35
  y[-1] = (y[-1][0].replace("\n", "<br>"), y[-1][1])
36
  else: