diff --git a/apps/common/handle/impl/text/text_split_handle.py b/apps/common/handle/impl/text/text_split_handle.py index 5b5eab52f37..e30b250c9aa 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 @@ def support(self, file, get_buffer): 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)