From 486ce91d2f5aada98dc247b79681c3cfdabe0b7a Mon Sep 17 00:00:00 2001 From: Durga Madhab Date: Fri, 1 Jun 2018 14:23:57 +0530 Subject: [PATCH] fabric.Color.reHSLa ignore case ignore case for hsla --- src/color.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color.class.js b/src/color.class.js index 775a4251a57..bf9dffd30b5 100644 --- a/src/color.class.js +++ b/src/color.class.js @@ -288,7 +288,7 @@ * @field * @memberOf fabric.Color */ - fabric.Color.reHSLa = /^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/; + fabric.Color.reHSLa = /^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i; /** * Regex matching color in HEX format (ex: #FF5544CC, #FF5555, 010155, aff)