Commits

Shlomi Fish committed 4f1ea70

Non-capturing grouping.

Comments (0)

Files changed (1)

t2/humour/fortunes/convert-to-xhtml.pl

 print {$back_fh} $contents;
 close($back_fh);
 
-$contents =~ s{\A(.*?)<body>}{}ms;
-$contents =~ s{</body>(.*?)\z}{}ms;
+$contents =~ s{\A(?:.*?)<body>}{}ms;
+$contents =~ s{</body>(?:.*?)\z}{}ms;
 
 $contents =~ s{<h3( id="[^>]+>[^<]+)</h3>}{<fortune_h3$1</fortune_h3>}g;