Skip to content

Commit

Permalink
PRESIDECMS-2330 EmailStyleInliner truncates last rule in selector
Browse files Browse the repository at this point in the history
  • Loading branch information
sebduggan committed May 13, 2022
1 parent 9f70514 commit d0694fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/services/email/EmailStyleInliner.cfc
Expand Up @@ -123,7 +123,7 @@ component {
var style = tokenizer.nextToken();

if ( !selector.contains( ":" ) ) { // skip a:hover rules, etc.
style = style.reReplace( "[^;]$", ";" );
style = style.reReplace( "([^;])$", "\1;" );
var rules = style.listToArray( ";" );
for( var rule in rules ) {
rule = rule.trim();
Expand Down

0 comments on commit d0694fa

Please sign in to comment.