From 6e9dd3adb384dd86fce1627b3fc2f0ac80c36003 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 9 Jul 2021 20:49:27 +0200 Subject: wiki: verify doi --- skate/cmd/skate-wikipedia-doi/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'skate/cmd/skate-wikipedia-doi/main.go') 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)) -- cgit v1.2.3