aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-04-28 02:32:22 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-04-28 02:32:22 +0200
commit77b04eece2faad6710c42a0965edb970692235f8 (patch)
tree0b63dcf433e85ab317128ece01cd196732084efb /skate
parentb760d7bb9a08538903778dfcab5b3440f27dded6 (diff)
downloadrefcat-77b04eece2faad6710c42a0965edb970692235f8.tar.gz
refcat-77b04eece2faad6710c42a0965edb970692235f8.zip
isbn may contain ocr artifacts
Diffstat (limited to 'skate')
-rw-r--r--skate/schema.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/skate/schema.go b/skate/schema.go
index 6f872eb..baead09 100644
--- a/skate/schema.go
+++ b/skate/schema.go
@@ -11,8 +11,9 @@ import (
)
var (
- isbn10Regex = regexp.MustCompile(`[0-9xX -]{10,18}`)
- isbn13Regex = regexp.MustCompile(`9[0-9xX -]{12,20}`)
+ isbn10Regex = regexp.MustCompile(`[O0-9xX -]{10,18}`)
+ isbn13Regex = regexp.MustCompile(`9[O0-9xX -]{12,20}`)
+
)
// RefToRelease converts a ref to a release. Set a extra.skate.status flag to