Skip to content

Commit e4c33ae

Browse files
committed
fix @document with no vendor prefix
1 parent cbf8ed9 commit e4c33ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ module.exports = function(css, options){
359359
var m = match(/^@([-\w]+)?document *([^{]+)/);
360360
if (!m) return;
361361

362-
var vendor = m[1].trim();
362+
var vendor = (m[1] || '').trim();
363363
var doc = m[2].trim();
364364

365365
if (!open()) return;

0 commit comments

Comments
 (0)