This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Only allow punct delimiter for regex subpattern
authorKarl Williamson <khw@cpan.org>
Tue, 10 Dec 2019 02:37:28 +0000 (19:37 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 11 Dec 2019 14:30:17 +0000 (07:30 -0700)
commitcd9d511e43ea1cf8e1ecd7f32676e9e26554ada2
tree55541288f04f1254043410c1442d9ffa4a22f4b3
parent11fcdeb9c56e45299ecb257c5148f36619469d85
Only allow punct delimiter for regex subpattern

The experimental feature that allows wildcard subpatterns in finding
Unicode properties, is supposed to only allow ASCII punctuation for
delimitters.  But if you preceded the delimitter by a backslash, the
check was skipped.  This commit fixes that.

It may be that we will eventually want to loosen the restriction and
allow a wider range of delimiters.  But until we have valid use-cases
that would push us in that direction, I don't want to get into
supporting stuff that we might later regret, such as invisible
characters for delimitters.  This feature is not really required for
programs to work, so I don't view it as necessary to be as general as
possible.
regcomp.c
t/re/reg_mesg.t