From df33cd6a8c0bfe5852179df7ea40b6131ba07176 Mon Sep 17 00:00:00 2001 From: bv-sumit Date: Wed, 12 Jul 2023 13:27:02 +0530 Subject: [PATCH] Fix #468 math function case senstivie handling --- lib/replace/Dimension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace/Dimension.js b/lib/replace/Dimension.js index edb00388..49ff7dae 100644 --- a/lib/replace/Dimension.js +++ b/lib/replace/Dimension.js @@ -50,7 +50,7 @@ export default function compressDimension(node, item) { } // issue #222: don't remove units inside calc - if (this.function && MATH_FUNCTIONS.has(this.function.name)) { + if (this.function && MATH_FUNCTIONS.has(this.function.name.toLowerCase())) { return; }