From 244ddf1f6222dee0a6f56821cd34678a1c1ec122 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 Apr 2012 15:40:30 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 7d22f981bf..25002d8674 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -77,7 +77,7 @@ def XLINK(name): def CALIBRE(name): return '{%s}%s' % (CALIBRE_NS, name) -_css_url_re = re.compile(r'url\s*\((.*?)\)', re.I) +_css_url_re = re.compile(r'url\s*\([\'"]{0,1}(.*?)[\'"]{0,1}\)', re.I) _css_import_re = re.compile(r'@import "(.*?)"') _archive_re = re.compile(r'[^ ]+')