From 67296ef210458ce48be3942df98624dca66b8c53 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 7 Jan 2015 16:35:51 +0100 Subject: Fix treat leading noise only as optional. --- mediawiki-trim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediawiki-trim') 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($_); -- cgit v1.2.3