Detect properly cover when img tag is complex
This commit is contained in:
parent
52812c706b
commit
48d1997f4d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
func getCover(e *epub.Epub, path string) (string, string) {
|
func getCover(e *epub.Epub, path string) (string, string) {
|
||||||
exp, _ := regexp.Compile("<img.*src=[\"']([^\"']*(\\.[^\\.]*))[\"']")
|
exp, _ := regexp.Compile("<img.*src=[\"']([^\"']*(\\.[^\\.\"']*))[\"']")
|
||||||
it := e.Iterator(epub.EITERATOR_SPINE)
|
it := e.Iterator(epub.EITERATOR_SPINE)
|
||||||
defer it.Close()
|
defer it.Close()
|
||||||
|
|
||||||
|
|
Reference in a new issue