Skip to content

Commit

Permalink
Fix IE 8 style check not getting it
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Nov 11, 2013
1 parent 98427ba commit 7e9b0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection/html_applier.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}

function removeOrChangeStyle(el, style, regExp) {
var exactRegex = new RegExp("(^|\\s|;)" + style.replace(/\s/gi, '').replace(/([\(\)])/gi, "\\$1").toLowerCase(), "gi"),
var exactRegex = new RegExp("(^|\\s|;)" + style.replace(/\s/gi, '').replace(/([\(\)])/gi, "\\$1").toLowerCase().replace(";", ";?"), "gi"),
elStyle = el.getAttribute('style');

if (elStyle && exactRegex.test(elStyle.replace(/\s/gi, '').toLowerCase())) {
Expand Down

0 comments on commit 7e9b0eb

Please sign in to comment.