diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-09 20:49:27 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-09 20:49:27 +0200 |
commit | 6e9dd3adb384dd86fce1627b3fc2f0ac80c36003 (patch) | |
tree | 6e37570f07325f90e7ccd0d8a8a584d7e6a3490c /skate/cmd | |
parent | 3657843805a0911fd89b99171dd318218529a327 (diff) | |
download | refcat-6e9dd3adb384dd86fce1627b3fc2f0ac80c36003.tar.gz refcat-6e9dd3adb384dd86fce1627b3fc2f0ac80c36003.zip |
wiki: verify doi
Diffstat (limited to 'skate/cmd')
-rw-r--r-- | skate/cmd/skate-wikipedia-doi/main.go | 2 |
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)) |