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

Regex for valid IDs doesn't accept valid cond-mat IDs #134

Open
Motorrat opened this issue Dec 31, 2019 · 0 comments
Open

Regex for valid IDs doesn't accept valid cond-mat IDs #134

Motorrat opened this issue Dec 31, 2019 · 0 comments

Comments

@Motorrat
Copy link

Motorrat commented Dec 31, 2019

return re.match('^\d+\.\d+(v\d+)?$', pid)

For example 0401304v1 is a valid ID of one the papers for cond-mat. It was downloaded among first articles for condensed matter physics category. (btw, ´--search-query 'cat:physics:cond-mat'´ did not work and I hardcoded 'cat:cond-mat' into the fetch_papers.py)
https://arxiv.org/pdf/cond-mat/0401304v1.pdf

As a result it is impossible to add the articles to the personal library. The icon is inactive (the JS UI gets 'NO' as a server response all the time because article ID doesn't pass validation)

Dabbrivia added a commit to Dabbrivia/arxiv-sanity-preserver that referenced this issue Jan 26, 2020
For example many papers from cat:cond-mat don't have a dot in their ID.
karpathy#134
Dabbrivia added a commit to Dabbrivia/arxiv-sanity-preserver that referenced this issue Jan 27, 2020
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

No branches or pull requests

1 participant