New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:ignorecase doesn't apply to character ranges #4454
Comments
From @hoelzroFor example:
Only prints 81 and 82, not E3. A test file is attached. |
From @perlpilotAlso ... <PerlJam> m: "%E3%81%82" ~~ m:ignorecase/ "%" <[a..f0..9]> / && say $/; It seems the presence of 0..9 in the character class makes some difference. On Wed Aug 05 07:22:15 2015, rob@hoelz.ro wrote:
-- -Scott (PerlJam/perlpilot) |
From @perlpilot<PerlJam> m: '%E3%81%82' ~~ m:ignorecase/['%' (<[abcdef0123456789]> ** 2)]+/ && say $/[0]; On Wed Aug 05 07:26:01 2015, duff wrote:
-- -Scott (PerlJam/perlpilot) |
From @jnthnOn Wed Aug 05 07:37:00 2015, duff wrote:
The bug is actually in the LTM engine, and can also be triggered as: perl6-m -e "'%E3%81%82' ~~ m:ignorecase/['%' (<[a..f]>|x)]+/ && say $/[0]" Which wrongly produces no output. |
The RT System itself - Status changed from 'new' to 'open' |
From @smlsThis unexpectedly fails to match the capital A: ➜ say "Aa1" ~~ /:i <[a..z0..9]>+/ *Without* the second range in the character class, it works as expected: ➜ say "Aa1" ~~ /:i <[a..z]>+/ (This is perl6 version 2015.09-433-g26617f9 built on MoarVM version 2015.09-79-gee9fc2b). |
From @jnthnOn Tue Oct 06 09:17:25 2015, jnthn@jnthn.net wrote:
Fixed now, and tests added in S05-metasyntax/charset.t. Also found that charranges did the wrong thing under LTM with ignoremark, and fixed that too (plus tests). And, of course, a test for the ignormark and ignorecase combination for good measure (also passing). /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125753 (status was 'resolved')
Searchable as RT125753$
The text was updated successfully, but these errors were encountered: