From 5c2d30c6382dec9b2746fb913b169038bf11d402 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 30 Dec 2014 15:04:13 +0100 Subject: Fix add ] as URL stop character. --- mediawiki-uri-escape | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediawiki-uri-escape') diff --git a/mediawiki-uri-escape b/mediawiki-uri-escape index 40dd10c..3377744 100755 --- a/mediawiki-uri-escape +++ b/mediawiki-uri-escape @@ -15,7 +15,7 @@ my $outfile = shift || $infile; $_ = path($infile)->slurp_utf8; my $uri_path = qr!https?://$RE{net}{domain}{-nospace}(?::\d+)?\K(/\S*?)!; -my $uri_end = qr!(?=[.,;]?[\s<\"\|}])!; +my $uri_end = qr!(?=[.,;]?[\s<\"\|}\]])!; s|\b$uri_path$uri_end|uri_escape(uri_unescape($1), "^A-Za-z0-9/\.")|eg; -- cgit v1.2.3