Skip to content

Commit 4c6e2f5

Browse files
committed
allow rule to have empty empty (more forgiving)
1 parent 901bb86 commit 4c6e2f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ module.exports = function(css, options){
191191

192192
// val
193193
var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);
194-
if (!val) return error('property missing value');
194+
// if (!val) return error('property missing value');
195+
if (!val) val = '';
195196

196197
var ret = pos({
197198
type: 'declaration',

0 commit comments

Comments
 (0)