From b760d7bb9a08538903778dfcab5b3440f27dded6 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 28 Apr 2021 01:35:04 +0200 Subject: update docs --- skate/cmd/skate-from-unstructured/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'skate/cmd') 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) -- cgit v1.2.3