diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-01-07 16:35:51 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-01-07 16:35:51 +0100 |
commit | 67296ef210458ce48be3942df98624dca66b8c53 (patch) | |
tree | c7877f112e829c1f13956e4c7aeda75d5b002ebf | |
parent | 98db2d3dbeac65bd3bdbb6cf31aba6e249d6145d (diff) |
Fix treat leading noise only as optional.
-rwxr-xr-x | mediawiki-trim | 2 |
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($_); |