This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Make sure no future ambiguity on new alpha assertions
authorKarl Williamson <khw@cpan.org>
Mon, 19 Feb 2018 19:01:51 +0000 (12:01 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 20 Feb 2018 03:47:10 +0000 (20:47 -0700)
commit70bd58e99cf8c4f66531ed2261be494f9fe83a00
treecb9289b0c37887ff245c7e39baba60b428f94fd1
parent60861a1d0e9b98624c7721ba13b988c1d973232c
regcomp.c: Make sure no future ambiguity on new alpha assertions

This change adds a colon when checking if a string is an alpha
assertion.  This is defensive coding against an unlikely future change
wherein some new (*... construct is added that has the same initial
sequence as one of these assertions.  The colon acts as a terminator and
would automatically prevent any ambiguity.  One of these had the colon,
and hence was inconsistent with the rest.

Spotted by ilmari.
regcomp.c