aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-wikipedia-doi/main.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-09 20:49:27 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-09 20:49:27 +0200
commit6e9dd3adb384dd86fce1627b3fc2f0ac80c36003 (patch)
tree6e37570f07325f90e7ccd0d8a8a584d7e6a3490c /skate/cmd/skate-wikipedia-doi/main.go
parent3657843805a0911fd89b99171dd318218529a327 (diff)
downloadrefcat-6e9dd3adb384dd86fce1627b3fc2f0ac80c36003.tar.gz
refcat-6e9dd3adb384dd86fce1627b3fc2f0ac80c36003.zip
wiki: verify doi
Diffstat (limited to 'skate/cmd/skate-wikipedia-doi/main.go')
-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 db40a20..07de520 100644
--- a/skate/cmd/skate-wikipedia-doi/main.go
+++ b/skate/cmd/skate-wikipedia-doi/main.go
@@ -28,7 +28,7 @@ func main() {
return nil, err
}
ids := w.ParseIDList()
- if ids.DOI == "" {
+ if ids.DOI == "" || !skate.PatDOI.MatchString(ids.DOI) {
return nil, nil
}
s := fmt.Sprintf("%s\t%s\t%s", ids.DOI, strings.TrimSpace(w.PageTitle), string(p))