diff --git a/vendor-overwrites/colorpicker/colorconverter.js b/vendor-overwrites/colorpicker/colorconverter.js index 17eea98a..2889ef44 100644 --- a/vendor-overwrites/colorpicker/colorconverter.js +++ b/vendor-overwrites/colorpicker/colorconverter.js @@ -106,7 +106,7 @@ const colorConverter = (() => { if (!type) return; const comma = value.includes(',') && !value.includes('/'); - const num = value.split(comma ? /\s*,\s*/ : /\s+(?!\/)|\s*\/\s*/); + const num = value.trim().split(comma ? /\s*,\s*/ : /\s+(?!\/)|\s*\/\s*/); if (num.length < 3 || num.length > 4) return; if (num[3] && !validateAlpha(num[3])) return null;