diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-04-28 01:35:04 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-04-28 01:35:04 +0200 |
commit | b760d7bb9a08538903778dfcab5b3440f27dded6 (patch) | |
tree | d9dd8feec7c769678ef7a8907867b60b3a605765 /skate/cmd | |
parent | 59afe1e58dcaed9c328d72fcdffb0f669c34d6b6 (diff) | |
download | refcat-b760d7bb9a08538903778dfcab5b3440f27dded6.tar.gz refcat-b760d7bb9a08538903778dfcab5b3440f27dded6.zip |
update docs
Diffstat (limited to 'skate/cmd')
-rw-r--r-- | skate/cmd/skate-from-unstructured/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/skate/cmd/skate-from-unstructured/main.go b/skate/cmd/skate-from-unstructured/main.go index 2c6e81f..c2015e2 100644 --- a/skate/cmd/skate-from-unstructured/main.go +++ b/skate/cmd/skate-from-unstructured/main.go @@ -68,7 +68,12 @@ func parseUnstructured(ref *skate.Ref) error { ref.Biblio.DOI = v } // DOI in URL - prefixes := []string{"http://doi.org/", "https://doi.org/", "http://dx.doi.org/", "https://dx.doi.org/"} + prefixes := []string{ + "http://doi.org/", + "https://doi.org/", + "http://dx.doi.org/", + "https://dx.doi.org/", + } for _, prefix := range prefixes { if ref.Biblio.DOI != "" && strings.HasPrefix(ref.Biblio.Url, prefix) { ref.Biblio.DOI = strings.Replace(ref.Biblio.Url, prefix, "", -1) |