Skip to content

Commit

Permalink
Add missing test file; Bug fix determining if contents of byte are al…
Browse files Browse the repository at this point in the history
…l numbers
  • Loading branch information
asset-web committed Jun 20, 2024
1 parent 01d2f82 commit 6276b62
Show file tree
Hide file tree
Showing 2 changed files with 147,351 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _ovid_medline_read_citations(abstract_file_path):
line = line.strip(b"\r\n")
if len(line) == 0:
pass
elif line[0:1] == b"<" and line[-1:] == b">" and line.strip(b"<").strip(b">").isdecimal():
elif line[0:1] == b"<" and line[-1:] == b">" and (line.strip(b"<").strip(b">")).decode("utf-8").isdecimal():
# Starting a new citation, yield if one has already been set up
if citation:
yield citation
Expand Down
Loading

0 comments on commit 6276b62

Please sign in to comment.