mirror of
https://github.com/remy/inliner.git
synced 2024-08-16 20:00:35 +03:00
parent
ba67ef1083
commit
9acbbcb351
@ -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(/;/, '')
|
||||
|
Loading…
Reference in New Issue
Block a user