Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(colorToRgbaArray): allow hex values with uppercase letters
Browse files Browse the repository at this point in the history
Closes #1014. Closes #1013.
  • Loading branch information
epelc authored and ajoslin committed Jan 8, 2015
1 parent b85ad62 commit 9b45af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/services/theming/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ function colorToRgbaArray(clr) {
});
}
if (clr.charAt(0) == '#') clr = clr.substring(1);
if (!/^([a-f0-9]{3}){1,2}$/g.test(clr)) return;
if (!/^([a-fA-F0-9]{3}){1,2}$/g.test(clr)) return;

var dig = clr.length / 3;
var red = clr.substr(0, dig);
Expand Down

0 comments on commit 9b45af5

Please sign in to comment.