From 010037d30bdd3ca9d852f787aa0440f5fadef775 Mon Sep 17 00:00:00 2001
From: Arran Hobson Sayers <32173585+ahobsonsayers@users.noreply.github.com>
Date: Sat, 28 Dec 2024 04:16:44 +0000
Subject: [PATCH] Improve alternative cover regex
---
goodreads/book.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/goodreads/book.go b/goodreads/book.go
index 905c03c..89c3ad1 100644
--- a/goodreads/book.go
+++ b/goodreads/book.go
@@ -14,7 +14,7 @@ import (
var (
// These are dirty workarounds, but they seem to work
- alternativeCoverRegex = regexp.MustCompile(`^.*?[Aa]lternat(iv)?e cover.*?`)
+ alternativeCoverRegex = regexp.MustCompile(`^.*?[Aa]lternat(iv)?e [Cc]over.*?`)
breakTagRegex = regexp.MustCompile(`
`)
lastBracketRegex = regexp.MustCompile(`^(.*)(\([^\(\)]*\))([^()]*)$`)
)