mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: The image uploaded from the workflow knowledge base zip file cannot be parsed (#4507)
This commit is contained in:
parent
47cea10a40
commit
a53b0d5c10
|
|
@ -32,7 +32,7 @@ class TextSplitHandle(BaseSplitHandle):
|
|||
if file_name.endswith(".md") or file_name.endswith('.txt') or file_name.endswith('.TXT') or file_name.endswith(
|
||||
'.MD'):
|
||||
return True
|
||||
if file_name.index('.') > 0:
|
||||
if '.' in file_name:
|
||||
return False
|
||||
buffer = get_buffer(file)
|
||||
result = detect(buffer)
|
||||
|
|
|
|||
Loading…
Reference in New Issue