Skip to content
Snippets Groups Projects
Unverified Commit d589b0f5 authored by KevinHuSh's avatar KevinHuSh Committed by GitHub
Browse files

fix exception in pdf parser (#584)

### What problem does this PR solve?
#451 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
parent 9d60a849
No related branches found
No related tags found
No related merge requests found
......@@ -470,7 +470,8 @@ class RAGFlowPdfParser:
continue
if re.match(r"[0-9]{2,3}/[0-9]{3}$", up["text"]) \
or re.match(r"[0-9]{2,3}/[0-9]{3}$", down["text"]):
or re.match(r"[0-9]{2,3}/[0-9]{3}$", down["text"]) \
or not down["text"].strip():
i += 1
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment