Skip to content

Commit 414fed8

Browse files
committed
use ? instead of {0,1} for regexp
1 parent b3042ce commit 414fed8

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
@@ -232,7 +232,7 @@ module.exports = function(css, options){
232232
var vals = [];
233233
var pos = position();
234234

235-
while (m = match(/^((\d+\.\d+|\.\d+|\d+)%{0,1}|[a-z]+)\s*/)) {
235+
while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) {
236236
vals.push(m[1]);
237237
match(/^,\s*/);
238238
}

0 commit comments

Comments
 (0)