This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Forbid literal \v in /[]/ under re strict, except under /x
authorKarl Williamson <khw@cpan.org>
Tue, 19 Dec 2017 02:04:56 +0000 (19:04 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 19 Dec 2017 02:10:52 +0000 (19:10 -0700)
commit2a6971a9d6e731d8d1d38fd2533d01eb975f7a4d
tree856af12d312e92a1ee3ea1e188bce048c83ae01b
parent0202c428e2e1febe76c0cfbb1a64a76cd3f6f756
Forbid literal \v in /[]/ under re strict, except under /x

Vertical space in a bracketed character class is likely to be an error;
either a typo or omission of /x.  It will match literally, but be
displayed like /x is in effect.

For now, just add this check to re 'strict', which is experimental,
designed to catch things the current regex parser doesn't.
pod/perldiag.pod
regcomp.c
t/re/reg_mesg.t