aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-04-28 01:35:04 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-04-28 01:35:04 +0200
commitb760d7bb9a08538903778dfcab5b3440f27dded6 (patch)
treed9dd8feec7c769678ef7a8907867b60b3a605765 /skate/cmd
parent59afe1e58dcaed9c328d72fcdffb0f669c34d6b6 (diff)
downloadrefcat-b760d7bb9a08538903778dfcab5b3440f27dded6.tar.gz
refcat-b760d7bb9a08538903778dfcab5b3440f27dded6.zip
update docs
Diffstat (limited to 'skate/cmd')
-rw-r--r--skate/cmd/skate-from-unstructured/main.go7
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)