Project

General

Profile

Actions

Bug #20615

closed

[Regexp] Incorrect match result for Regexp including unicode property

Added by taichi730 (Taichi Ishitani) 4 months ago. Updated 4 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
[ruby-dev:<unknown>]

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0