diff --git a/common/input/color/ColorModel.ts b/common/input/color/ColorModel.ts index c9376019..8ca24bb1 100644 --- a/common/input/color/ColorModel.ts +++ b/common/input/color/ColorModel.ts @@ -87,9 +87,9 @@ export const ColorModel = types } const [, red = 0, green = 0, blue = 0] = - /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/ + /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i .exec(hex) - ?.map(hex => Number.parseInt(hex.toLowerCase(), 16)) ?? [] + ?.map(hex => Number.parseInt(hex, 16)) ?? [] const max = Math.max(red, blue, green) const min = Math.min(red, blue, green)