Committer: azateev
LJSUP-11986: Autoformat URLs on statushisotryU trunk/cgi-bin/LJ/Text.pm
Modified: trunk/cgi-bin/LJ/Text.pm =================================================================== --- trunk/cgi-bin/LJ/Text.pm 2012-04-28 09:40:03 UTC (rev 21852) +++ trunk/cgi-bin/LJ/Text.pm 2012-04-28 09:45:15 UTC (rev 21853) @@ -402,7 +402,7 @@ }; ## URL is http://anything-here-but-space-and-quotes/and-last-symbol-isn't-space-comma-period-etc ## like this (http://example.com) and these: http://foo.bar, http://bar.baz. - $text =~ s!(https?://[^\s\'\"\<\>]+[^\s\'\"\<\>\.\,\?\:\)])! $match->($1) !ge; + $text =~ s!(https?://[^\s\'\"\<\>]+[^\s\'\"\<\>\.\,\?\:\;\)])! $match->($1) !ge; $text =~ s|&url(\d+);(.*?)&urlend;|$tag_a->($1,$2)|ge; return $text;