This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
diagnostics: don’t truncate wrapped links
authorFather Chrysostomos <sprout@cpan.org>
Mon, 12 Aug 2013 07:27:14 +0000 (00:27 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 12 Aug 2013 07:27:14 +0000 (00:27 -0700)
lib/diagnostics.pm

index 6ccc3d0..eadb18b 100644 (file)
@@ -321,7 +321,7 @@ my %msg;
     while (<POD_DIAG>) {
 
        sub _split_pod_link {
-           $_[0] =~ '(?:([^|]*)\|)?([^/]*)(?:/("?)(.*)\3)?';
+           $_[0] =~ m'(?:([^|]*)\|)?([^/]*)(?:/("?)(.*)\3)?'s;
            ($1,$2,$4);
        }