Skip to content

Commit

Permalink
fix(hot-fix): chunk regex update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaldan007 committed Jan 20, 2022
1 parent e60fc25 commit 0ed64cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pedurma/docx_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def parse_page(page, note_walker):
page_md = ""
chunks = split_text(page)
for chunk in chunks:
if chunk and "<" in chunk:
if chunk and re.search(r"\(\d+\) <.+?>", chunk):
page_md += f"[^{note_walker}]"
note_walker += 1
else:
Expand Down

0 comments on commit 0ed64cd

Please sign in to comment.