diff options
-rw-r--r-- | cmd/rescribe/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index da38c96..59d8166 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -550,8 +550,8 @@ func downloadbook(dir string, name string, conn Pipeliner) error { } func processbook(training string, tesscmd string, conn Pipeliner) error { - origPattern := regexp.MustCompile(`[0-9]{4}.jpg$`) - wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.png$`) + origPattern := regexp.MustCompile(`[0-9]{4}.(jpg|png)$`) + wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.(jpg|png)$`) ocredPattern := regexp.MustCompile(`.hocr$`) var checkPreQueue <-chan time.Time |