Skip to content

Commit

Permalink
Merge pull request #2 from durga598/reHSLa-patch-1
Browse files Browse the repository at this point in the history
 fabric.Color.reRGBa regex ignore case
  • Loading branch information
durga598 authored Jun 1, 2018
2 parents e5e7bcf + 486ce91 commit 615d4da
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 615d4da

Please sign in to comment.