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

Case-insensitive do not match special letters that are equivalent when .fc #5457

Closed
p6rt opened this issue Jul 16, 2016 · 3 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Jul 16, 2016

Migrated from rt.perl.org#128642 (status was 'rejected')

Searchable as RT128642$

@p6rt
Copy link
Author

p6rt commented Jul 16, 2016

From @zoffixznet

Unsure if this is intentional and documentation should clarify the extent of case-insensitivity in regexes, but I expected this regex match to give True​:

<Zoffix> m​: say 'SS' ~~ m​:i/ß/
<camelia> rakudo-moar 980f49​: OUTPUT«False␤»
<Zoffix> m​: say 'ß' ~~ m​:i/SS/
<camelia> rakudo-moar 980f49​: OUTPUT«False␤»

As SS is the uppercase version of ß​:
<Zoffix> m​: say 'SS'.fc ~~ 'ß'.fc
<camelia> rakudo-moar 980f49​: OUTPUT«True␤»

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 16, 2016

From @zoffixznet

Never mind. It actually works right. Just needed an .fc on the string​:

<Zoffix> m​: say 'ß'.fc ~~ m​:i/SS/
<camelia> rakudo-moar 980f49​: OUTPUT«「ss」␤»

@p6rt
Copy link
Author

p6rt commented Jul 16, 2016

@zoffixznet - Status changed from 'new' to 'rejected'

@p6rt p6rt closed this as completed Jul 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant