This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Properly count elements in [] for false ranges
authorKarl Williamson <public@khwilliamson.com>
Fri, 20 Jul 2012 17:35:07 +0000 (11:35 -0600)
committerKarl Williamson <public@khwilliamson.com>
Wed, 25 Jul 2012 03:13:49 +0000 (21:13 -0600)
commitbd771b08b0ac3a37b56a8301139c0881d6bedf11
tree8fdf66cfcbfd6a01067bc0f268c0893482f839aa
parent0658cddeb9feb16c427ac50f4000b008516b9958
regcomp.c: Properly count elements in [] for false ranges

When something that looks like a range turns out not to be, the hyphen
is matched literally, and so is a separate element in the character
class.  It needs to be accounted as such.
regcomp.c