WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 61a5303

Browse files
authored
fix: The image uploaded from the workflow knowledge base zip file cannot be parsed (#4507)
1 parent 621fbd3 commit 61a5303

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)