Skip to content

Conversation

@rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Jul 7, 2025

If a DOI had whitespace at the beginning or end, the regex would fail causing the "Invalid DOI" error message for a second until it was later trimmed after lookup. This PR trims the DOI value before regex testing.

@rpoet-jh rpoet-jh self-assigned this Jul 7, 2025
@rpoet-jh rpoet-jh requested a review from markpatton July 7, 2025 18:15
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2025

@rpoet-jh rpoet-jh linked an issue Jul 7, 2025 that may be closed by this pull request
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried locally and the fix works!

@rpoet-jh rpoet-jh merged commit 14649af into main Jul 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOI error message displaying during DOI lookup

3 participants