Skip to content

Commit a53b0d5

Browse files
shaohuzhang1liuruibin
authored andcommitted
fix: The image uploaded from the workflow knowledge base zip file cannot be parsed (#4507)
1 parent 47cea10 commit a53b0d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/handle/impl/text/text_split_handle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def support(self, file, get_buffer):
3232
if file_name.endswith(".md") or file_name.endswith('.txt') or file_name.endswith('.TXT') or file_name.endswith(
3333
'.MD'):
3434
return True
35-
if file_name.index('.') > 0:
35+
if '.' in file_name:
3636
return False
3737
buffer = get_buffer(file)
3838
result = detect(buffer)

0 commit comments

Comments
 (0)