Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates PMID detection regex #56

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Updates PMID detection regex #56

merged 1 commit into from
Jul 11, 2024

Conversation

JPrevost
Copy link
Member

@JPrevost JPrevost commented Jul 10, 2024

NOTE: PMID detection may be entirely silly based on our current bento derived search corpus, but I'd like to keep it in for now as once we expand beyond Bento we may find people search differently.

Why are these changes being introduced:

  • The regex was missing PMIDs with no space between the PMID: and the indentifier, such as PMID:35648703

Relevant ticket(s):

How does this address that need:

  • Updates regex to allow, but not require, a single whitespace character between pmid: and the indentifier

@mitlib mitlib temporarily deployed to tacos-api-pipeline-pr-56 July 10, 2024 18:43 Inactive
@jazairi jazairi self-assigned this Jul 11, 2024
Why are these changes being introduced:

* The regex was missing PMIDs with no space between the `PMID:`
  and the indentifier, such as `PMID:35648703`

Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/TCO-42

How does this address that need:

* Updates regex to allow, but not require, a single whitespace character
  between `pmid:` and the indentifier
@JPrevost JPrevost merged commit 17eaf43 into main Jul 11, 2024
2 checks passed
@JPrevost JPrevost deleted the tco42-pmid-with-no-spaces branch July 11, 2024 21:03
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.

3 participants