Skip to content

Commit

Permalink
Enabled ^H again
Browse files Browse the repository at this point in the history
Might've misinterpreted something.
  • Loading branch information
NamelessRumia authored Dec 30, 2017
1 parent ad92903 commit 7b04410
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wakautils.pl
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ ($@)
# do <s>
# $line=~s{ (?<![0-9a-zA-Z\*_\x80-\x9f\xe0-\xfc]) (~~) (?![<>\s\*_]) ([^<>]+?) (?<![<>\s\*_\x80-\x9f\xe0-\xfc]) \1 (?![0-9a-zA-Z\*_]) }{<u>$2</u>}gx;

# do ^H - [disabled due to an exploit; uncomment <s> instead]
# if($]>5.007)
# {
# my $regexp;
# $regexp=qr/(?:&#?[0-9a-zA-Z]+;|[^&<>])(?<!\^H)(??{$regexp})?\^H/;
# $line=~s{($regexp)}{"<del>".(substr $1,0,(length $1)/3)."</del>"}gex;
# }
# do ^H
if($]>5.007)
{
my $regexp;
$regexp=qr/(?:&#?[0-9a-zA-Z]+;|[^&<>])(?<!\^H)(??{$regexp})?\^H/;
$line=~s{($regexp)}{"<del>".(substr $1,0,(length $1)/3)."</del>"}gex;
}

$line=$handler->($line) if($handler);

Expand Down

0 comments on commit 7b04410

Please sign in to comment.