Actions
Bug #20615
closed[Regexp] Incorrect match result for Regexp including unicode property
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
Description
A regex pattern including an unicode property is not matched correctly.
/\A *\z/.match?('') # => true
/\Ap{White_Space}*\z/.match?('') # => false
I think both of these patterns should be matched but the later pattern including an unicode property is not.
Updated by taichi730 (Taichi Ishitani) 4 months ago ยท Edited
- Subject changed from [Regexp] Different match result between using a character class and an unicode property to [Regexp] Incorrect match result for Regexp including unicode property
- ruby -v set to 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
Updated by taichi730 (Taichi Ishitani) 4 months ago
This regexp pattern is invalid.
Sorry for my mistake.
Updated by jeremyevans0 (Jeremy Evans) 4 months ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0Like0Like0