Bug ID: 2153
Summary: Compile error for pattern [[:ascii:]-]
Version: 10.23 (PCRE2)
Since PCRE2 version 10.23, the pattern "[[:ascii:]-]" is not accepted anymore:
"invalid range in character class"
Perl accepts it without warning. I think the pattern should be accepted if the
'-' is the last character in the sequence.
The bug has been introduced with this change:
(g) A hyphen appearing immediately after a POSIX character class (for example
/[[:ascii:]-z]/) now generates an error. Perl does accept this as a
literal, but gives a warning, so it seems best to fail it in PCRE.
You are receiving this mail because:
You are on the CC list for the bug.
This message was posted to the following mailing lists: