Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b868538

Browse files
committed
Fixed breaking references. Resolves svg#274
1 parent bc6fcd2 commit b868538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/convertColors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ exports.fn = function(item, params) {
4949

5050
if (collections.colorsProps.indexOf(attr.name) > -1) {
5151

52-
var val = attr.value.toLowerCase(),
52+
var val = attr.value,
5353
match;
5454

5555
// Convert color name keyword to long hex
56-
if (params.names2hex && val in collections.colorsNames) {
56+
if (params.names2hex && val.toLowerCase() in collections.colorsNames) {
5757
val = collections.colorsNames[val];
5858
}
5959

0 commit comments

Comments
 (0)