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

TODO: :ignoremark #3017

Closed
p6rt opened this issue Jan 1, 2013 · 3 comments
Closed

TODO: :ignoremark #3017

p6rt opened this issue Jan 1, 2013 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jan 1, 2013

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

Searchable as RT116256$

@p6rt
Copy link
Author

p6rt commented Jan 1, 2013

From @coke

19​:04 < [Coke]> r​: say "ü" ~~ /​:ignoremark 'u'/
19​:04 <+p6eval> rakudo 13e805​: OUTPUT«===SORRY!===␤Unrecognized regex
modifier
  :ignoremark␤at /tmp/93aS3IV3lu​:1␤------> say "ü" ~~
  /​:ignoremark⏏ 'u'/␤»

From the spec​:

The :m (or :ignoremark) modifier scopes exactly like :ignorecase except
that it ignores marks (accents and such) instead of case. It is equivalent
to taking each grapheme (in both target and pattern), converting both to
NFD (maximally decomposed) and then comparing the two base characters
(Unicode non-mark characters) while ignoring any trailing mark characters.
The mark characters are ignored only for the purpose of determining the
truth of the assertion; the actual text matched includes all ignored
characters, including any that follow the final base character.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 27, 2015

From @FROGGS

Patch​: rakudo/rakudo@4cfec0c38d
Test​: Raku/roast@6ecf415d8a

@p6rt
Copy link
Author

p6rt commented Jun 27, 2015

@FROGGS - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jun 27, 2015
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