Skip to content

Commit ad4ad54

Browse files
committed
add /g to prop trim
1 parent 1ad40c0 commit ad4ad54

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
@@ -181,7 +181,7 @@ module.exports = function(css, options){
181181
// prop
182182
var prop = match(/^(\*?[-\/\*\w]+)\s*/);
183183
if (!prop) return;
184-
prop = prop[0].replace(/^\s+|\s+$/, '');
184+
prop = prop[0].replace(/^\s+|\s+$/g, '');
185185

186186
// :
187187
if (!match(/^:\s*/)) return error("property missing ':'");

0 commit comments

Comments
 (0)