-
Notifications
You must be signed in to change notification settings - Fork 30
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
global: parsing fixes and HTTPS usage #20
Conversation
@@ -47,11 +47,15 @@ | |||
('73513537', ['ean8'], '', ''), | |||
('15626865', ['issn', 'pmid'], '1562-6865', ''), | |||
('10013/epic.10033', ['handle'], '', | |||
'http://hdl.handle.net/10013/epic.10033'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add https and do not remove the existing test cases
@@ -23,14 +23,14 @@ | |||
from .version import __version__ | |||
|
|||
doi_regexp = re.compile( | |||
"(doi:|http://dx.doi.org/|https://dx.doi.org/|http://doi.org/|" | |||
"https://doi.org/)?(10\.\d+(.\d+)*/.*)$", | |||
"(doi:\s*|(?:https?://)?(?:dx\.)?doi\.org/)?(10\.\d+(.\d+)*/.*)$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add testcases for \s*
@slint please use |
06ecbd7
to
5385393
Compare
dd3fa54
to
fed14f3
Compare
fed14f3
to
5ea322a
Compare
* BETTER Detects and parses Handles and DOIs without the "http(s)://", and ignores whitespace after scheme tags (eg. "doi: 10.123/456"). * NEW Adds an optional parameter in `idutils.to_url` to use HTTPS scheme for PID providers that support it. Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch> Signed-off-by: Alexander Ioannidis <a.ioannidis@cern.ch>
No description provided.