postcss-value-parser
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -56,3 +56,6 @@ var openParentheses = "(".charCodeAt(0); | ||
code === colon || | ||
(code === slash && value.charCodeAt(next + 1) !== star) | ||
(code === slash && | ||
value.charCodeAt(next + 1) !== star && | ||
(!parent || | ||
(parent && parent.type === "function" && parent.value !== "calc"))) | ||
) { | ||
@@ -59,0 +62,0 @@ before = token; |
@@ -25,2 +25,24 @@ var minus = "-".charCodeAt(0); | ||
sciPos = pos; | ||
var nextCode = value.charCodeAt(pos + 1); | ||
if ( | ||
nextCode === plus || | ||
nextCode === minus || | ||
(nextCode >= 48 && nextCode <= 57) | ||
) { | ||
if (nextCode === plus || nextCode === minus) { | ||
var nextNextCode = value.charCodeAt(pos + 2); | ||
if (nextNextCode < 48 || nextNextCode > 57) { | ||
break; | ||
} | ||
pos += 1; | ||
} | ||
pos += 1; | ||
} else { | ||
break; | ||
} | ||
} else if (code === dot) { | ||
@@ -27,0 +49,0 @@ if (dotted) { |
{ | ||
"name": "postcss-value-parser", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Transforms css values and at-rule params into the tree", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25424
9
569