summaryrefslogtreecommitdiff
path: root/mediawiki-trim
diff options
context:
space:
mode:
Diffstat (limited to 'mediawiki-trim')
-rwxr-xr-xmediawiki-trim2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediawiki-trim b/mediawiki-trim
index a67d205..3e8bcb7 100755
--- a/mediawiki-trim
+++ b/mediawiki-trim
@@ -13,7 +13,7 @@ my $outfile = shift || $infile;
$_ = path($infile)->slurp_utf8;
-s!.*?\n= != !s;
+s!^(?:.*?\n)?= != !s;
path($outfile)->spew_utf8($_);