summaryrefslogtreecommitdiff
path: root/mediawiki-trim
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-01-07 16:35:51 +0100
committerJonas Smedegaard <dr@jones.dk>2015-01-07 16:35:51 +0100
commit67296ef210458ce48be3942df98624dca66b8c53 (patch)
treec7877f112e829c1f13956e4c7aeda75d5b002ebf /mediawiki-trim
parent98db2d3dbeac65bd3bdbb6cf31aba6e249d6145d (diff)
Fix treat leading noise only as optional.
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($_);