fix: loose match on at-imports

Fixes #98
This commit is contained in:
Remy Sharp 2016-05-22 22:25:19 +01:00
parent ba67ef1083
commit 9acbbcb351

View File

@ -50,7 +50,7 @@ function getImports(root, css) {
if (position !== -1) {
inliner.jobs.add('link', 1);
var match = (css.match(/@import\s*(.*)/) || [null, ''])[1];
var match = (css.match(/@import\s*(.*?);/) || [null, ''])[1];
var url = match.replace(/url/, '')
.replace(/['}"()]/g, '')
.replace(/;/, '')