summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmediawiki-uri-escape2
1 files changed, 1 insertions, 1 deletions
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;