Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item12888: nasty; use of /o causes the subs to be cached, which break…
…s when that function call relies on prefs values
  • Loading branch information
Comment committed Nov 28, 2014
1 parent 4614e99 commit 7a3be20
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -447,7 +447,7 @@ s/<([A-Za-z]+[^>]*?)((?:\s+\/)?)>/"<" . $this->_appendClassToTag($1, 'TMLhtml')
# Handle colour tags specially (hack, hack, hackity-HACK!)
my $colourMatch = join( '|', grep( /^[A-Z]/, @WC::TML_COLOURS ) );
$text =~ s#%($colourMatch)%(.*?)%ENDCOLOR%#
_getNamedColour($1, $2)#oge;
_getNamedColour($1, $2)#ge;

# let WYSIWYG-editable A tags untouched for the editor
$text =~ s/(\<a
Expand Down

0 comments on commit 7a3be20

Please sign in to comment.