Skip to content

Commit

Permalink
fabric.Color.reHSLa ignore case
Browse files Browse the repository at this point in the history
ignore case for hsla
  • Loading branch information
durga598 authored Jun 1, 2018
1 parent e5e7bcf commit 486ce91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 486ce91

Please sign in to comment.