diff --git a/lib/css.js b/lib/css.js index 1ebc438..360e6ed 100644 --- a/lib/css.js +++ b/lib/css.js @@ -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(/;/, '')