aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-wikipedia-doi
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-25 16:36:52 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-25 16:36:52 -0700
commit0d4c3ca311b1057bdb07144b0ac8ba860be2de55 (patch)
tree8efe9f4eb161a1959c5e3fc900329e2a05abf1a6 /skate/cmd/skate-wikipedia-doi
parent9df1ff863eb9729faa9b46effb460c74203969f7 (diff)
downloadrefcat-0d4c3ca311b1057bdb07144b0ac8ba860be2de55.tar.gz
refcat-0d4c3ca311b1057bdb07144b0ac8ba860be2de55.zip
skate: use SanitizeDOI in all inputs
Diffstat (limited to 'skate/cmd/skate-wikipedia-doi')
-rw-r--r--skate/cmd/skate-wikipedia-doi/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/skate/cmd/skate-wikipedia-doi/main.go b/skate/cmd/skate-wikipedia-doi/main.go
index a6d82c0..3f7afde 100644
--- a/skate/cmd/skate-wikipedia-doi/main.go
+++ b/skate/cmd/skate-wikipedia-doi/main.go
@@ -39,7 +39,7 @@ func main() {
return nil, nil
}
var (
- doi = wsReplacer.Replace(match[0])
+ doi = skate.SanitizeDOI(wsReplacer.Replace(match[0]))
pageTitle = strings.TrimSpace(w.PageTitle)
s = fmt.Sprintf("%s\t%s\t%s", doi, pageTitle, string(p))
)