Skip to content

Commit

Permalink
Make identifier search case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
timothygebhard committed Aug 20, 2024
1 parent 6b7e90a commit 837450e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doi2bibtex/ads.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_ads_bibcode_for_identifier(identifier: str) -> str:

# Find the result that matches the identifier
for result in response["docs"]:
if any(identifier in _ for _ in result["identifier"]):
if any(identifier.lower() in _.lower() for _ in result["identifier"]):
return str(result["bibcode"])

# If we get here, we didn't find a match
Expand Down

0 comments on commit 837450e

Please sign in to comment.