CSS example: parse decimal form of nums correctly

Before, 0.02 could get parsed as 0 and 0.02 when looking for nums+
master
Caleb Hearon 8 years ago
parent 205c55d309
commit 770ca6e723

@ -292,7 +292,7 @@ name
= chars:nmchar+ { return chars.join(""); }
num
= [+-]? ([0-9]+ / [0-9]* "." [0-9]+) ("e" [+-]? [0-9]+)? {
= [+-]? ([0-9]* "." [0-9]+ / [0-9]+) ("e" [+-]? [0-9]+)? {
return parseFloat(text());
}

Loading…
Cancel
Save