Skip to content

Commit

Permalink
Merge pull request #30 from nemobis/T187791
Browse files Browse the repository at this point in the history
Use a stricter regex for arXiv identifiers
  • Loading branch information
nemobis committed Apr 30, 2018
2 parents b0fbffa + bf32cdb commit de27de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oabot/arguments.py
Expand Up @@ -100,7 +100,7 @@ def present_and_free(self, template):
custom_access=True),
ArgumentMapping(
'arxiv',
r'https?://arxiv\.org/(abs|pdf)/(.*)(.pdf)?',
r'https?://arxiv\.org/(abs|pdf)/(\d+\.[\dv]+)(\.pdf)?',
group_id=2,
alternate_names=['eprint'],
always_free=True),
Expand Down

0 comments on commit de27de3

Please sign in to comment.