Skip to content
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

Rakudo doesn't honor :i flag for interpolated string in regexes #1936

Closed
p6rt opened this issue Jul 14, 2010 · 5 comments
Closed

Rakudo doesn't honor :i flag for interpolated string in regexes #1936

p6rt opened this issue Jul 14, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 14, 2010

Migrated from rt.perl.org#76500 (status was 'resolved')

Searchable as RT76500$

@p6rt
Copy link
Author

p6rt commented Jul 14, 2010

From @moritz

07​:50 < cbk> rakudo​: my $searchStr = "test"; my $inputStr = "TEST"; if
($inputStr ~~ m/​:i $searchStr /) { say "Search term found in string!";}
else {say "Not found!";}
07​:50 < p6eval> rakudo 6ab741​: OUTPUT«Not found!␤»

07​:51 < cbk> rakudo​: my $searchStr = "TEST"; my $inputStr = "TEST"; if
($inputStr ~~ m/​:i $searchStr /) { say "Search term found in string!";}
else {say "Not found!";}
07​:51 < p6eval> rakudo 6ab741​: OUTPUT«Search term found in string!␤»
07​:51 * moritz_ submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 21, 2012

From @jnthn

On Tue Jul 13 22​:53​:22 2010, moritz wrote​:

07​:50 < cbk> rakudo​: my $searchStr = "test"; my $inputStr = "TEST"; if
($inputStr ~~ m/​:i $searchStr /) { say "Search term found in string!";}
else {say "Not found!";}
07​:50 < p6eval> rakudo 6ab741​: OUTPUT«Not found!␤»

07​:51 < cbk> rakudo​: my $searchStr = "TEST"; my $inputStr = "TEST"; if
($inputStr ~~ m/​:i $searchStr /) { say "Search term found in string!";}
else {say "Not found!";}
07​:51 < p6eval> rakudo 6ab741​: OUTPUT«Search term found in string!␤»
07​:51 * moritz_ submits rakudobug

Now​:

my $x = 'XYZ'; say 'xyz' ~~ /​:i $x/;
=> <xyz>

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Apr 24, 2012

From @moritz

Now tested in S05-modifier/ignorecase.t

@p6rt
Copy link
Author

p6rt commented Apr 24, 2012

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 24, 2012
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant