Skip to content

Commit

Permalink
Attempt to handle style values that have colons
Browse files Browse the repository at this point in the history
  • Loading branch information
brett-nuske-alliancesoftware authored Jun 12, 2017
1 parent 40e5d0f commit 7b36dfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ function createStyleJsonFromString(styleString) {
var singleStyle, key, value, jsonStyles = {};
for (var i = 0; i < styles.length; ++i) {
singleStyle = styles[i].split(':');

if (singleStyle.length > 2) {
singleStyle[1] = singleStyle.slice(1).join(':');
}

key = camelize(singleStyle[0]);
value = singleStyle[1];
if (key.length > 0 && value.length > 0) {
Expand Down

0 comments on commit 7b36dfe

Please sign in to comment.