From 61a5303e7dc8f8df001f4a87caa39948b32e7ff2 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Fri, 12 Dec 2025 14:35:03 +0800 Subject: [PATCH] fix: The image uploaded from the workflow knowledge base zip file cannot be parsed (#4507) --- apps/common/handle/impl/text/text_split_handle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/handle/impl/text/text_split_handle.py b/apps/common/handle/impl/text/text_split_handle.py index 5b5eab52f..e30b250c9 100644 --- a/apps/common/handle/impl/text/text_split_handle.py +++ b/apps/common/handle/impl/text/text_split_handle.py @@ -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)