Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/v1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Apr 5, 2019
2 parents 69d4c5c + 9057332 commit 15d0fc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ def split_uri(uri_str):
uri = URI(uri_str)
if uri.scheme.name in ['http', 'https']:
scheme = uri.scheme.name
value = uri.heirarchical
# we're replacing the scheme instead of using heirarchical
# to preserve query strings
value = uri.uri.replace(uri.scheme.name + '://', '')
else:
# e.g. uri.heirarchical = 'doi:10.11647/obp.0130';
# we are asumming the path only contains one colon
Expand Down

0 comments on commit 15d0fc6

Please sign in to comment.