Project

General

Profile

Actions

Bug #20615

closed

[Regexp] Incorrect match result for Regexp including unicode property

Added by taichi730 (Taichi Ishitani) 5 months ago. Updated 5 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 #1

Updated by taichi730 (Taichi Ishitani) 5 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]
Actions #2

Updated by taichi730 (Taichi Ishitani) 5 months ago

  • Description updated (diff)
Actions #3

Updated by taichi730 (Taichi Ishitani) 5 months ago

This regexp pattern is invalid.
Sorry for my mistake.

Actions #4

Updated by jeremyevans0 (Jeremy Evans) 5 months ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0