Detect properly cover when img tag is complex

This commit is contained in:
Las Zenow 2012-08-15 14:51:59 +02:00
parent 52812c706b
commit 48d1997f4d

View file

@ -22,7 +22,7 @@ const (
)
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)
defer it.Close()