Project

General

Profile

Actions

Bug #20615

closed

[Regexp] Incorrect match result for Regexp including unicode property

Bug #20615: [Regexp] Incorrect match result for Regexp including unicode property

Added by taichi730 (Taichi Ishitani) over 1 year ago. Updated over 1 year 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.

Updated by taichi730 (Taichi Ishitani) over 1 year ago ยท Edited Actions #1

  • 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) over 1 year ago Actions #2

  • Description updated (diff)

Updated by taichi730 (Taichi Ishitani) over 1 year ago Actions #3

This regexp pattern is invalid.
Sorry for my mistake.

Updated by jeremyevans0 (Jeremy Evans) over 1 year ago Actions #4

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom