diff options
-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)) |