diff --git a/lib/extract/extractGradient.js b/lib/extract/extractGradient.js
index <HASH>..<HASH> 100644
--- a/lib/extract/extractGradient.js
+++ b/lib/extract/extractGradient.js
@@ -9,7 +9,7 @@ import units from "../units";
 const percentReg = /^([+\-]?\d+(?:\.\d+)?(?:[eE][+\-]?\d+)?)(%?)$/;
 
 function percentToFloat(percent) {
-    const matched = percent.match(percentReg);
+    const matched = percent.toString().match(percentReg);
     if (!matched) {
         console.warn(
             `\`${percent}\` is not a valid number or percentage string.`,
Fix percent.match is not a function when percent is a number