Skip to content

Commit

Permalink
fix: 修复分段超过分段长度限制 (1Panel-dev#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored May 29, 2024
1 parent 5fbdee8 commit ed7ddfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/util/split_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def parse_level(text, pattern: str):
:param pattern: 正则
:return: 符合正则的文本
"""
level_content_list = list(map(to_tree_obj, re_findall(pattern, text)))
level_content_list = list(map(to_tree_obj, [r[0:255] for r in re_findall(pattern, text) if r is not None]))
return list(map(filter_special_symbol, level_content_list))


Expand Down

0 comments on commit ed7ddfb

Please sign in to comment.