We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e55aea commit 1fa333bCopy full SHA for 1fa333b
index.js
@@ -32,13 +32,8 @@ function reduceCSSCalc(value, decimalPrecision) {
32
stack = 0
33
decimalPrecision = Math.pow(10, decimalPrecision === undefined ? 5 : decimalPrecision)
34
35
- value = value
36
- // CSS allow to omit 0 for 0.* values,
37
- // but math-expression-evaluator does not
38
- .replace(/(\s|\()(\.[0-9])/g, "$10$2")
39
-
40
- // allow calc() on multiple lines
41
- .replace(/\n+/g, " ")
+ // Allow calc() on multiple lines
+ value = value.replace(/\n+/g, " ")
42
43
/**
44
* Evaluates an expression
0 commit comments