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

global: parsing fixes and HTTPS usage #20

Merged
merged 1 commit into from
Sep 20, 2016

Conversation

slint
Copy link
Member

@slint slint commented Sep 19, 2016

No description provided.

@@ -47,11 +47,15 @@
('73513537', ['ean8'], '', ''),
('15626865', ['issn', 'pmid'], '1562-6865', ''),
('10013/epic.10033', ['handle'], '',
'http://hdl.handle.net/10013/epic.10033'),
Copy link
Member

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+)*/.*)$",
Copy link
Member

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*

@jirikuncar
Copy link
Member

@slint please use FIX, BETTER, or INCOMPATIBLE labels where necessary.

@slint slint force-pushed the handle_fixes branch 2 times, most recently from 06ecbd7 to 5385393 Compare September 20, 2016 08:40
@jirikuncar jirikuncar assigned jirikuncar and unassigned slint Sep 20, 2016
@jirikuncar jirikuncar force-pushed the handle_fixes branch 2 times, most recently from dd3fa54 to fed14f3 Compare September 20, 2016 11:50
* 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>
@jirikuncar jirikuncar merged commit 5ea322a into inveniosoftware:master Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants