regcomp.c: Tighten embedded patterns in regex sets
authorKarl Williamson <khw@cpan.org>
Sun, 16 Dec 2018 19:38:28 +0000 (12:38 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 16 Dec 2018 19:44:54 +0000 (12:44 -0700)
commit44abdc3a8a76a7ca901b7f513b33f72cc9f21495
tree74afe8d43a301dc70b2ff265fdbad460164bd813
parent1c484ed4bdbb071c7ad4fc9a259c1aa027d27719
regcomp.c: Tighten embedded patterns in regex sets

In the (?[ ... ]) regex sets features, one can embed another compiled
regex set pattern.  Such compiled patterns always have a flag of '^',
which we weren't looking for prior to this commit.  That meant that
uncompiled patterns would be mistaken for compiled ones.
regcomp.c
t/re/reg_mesg.t