[ruby-dev:52093] [Ruby master Bug#20615] [Regexp] Different match result between using a character class and an unicode property

Issue #20615 has been reported by taichi730 (Taichi Ishitani). ---------------------------------------- Bug #20615: [Regexp] Different match result between using a character class and an unicode property https://bugs.ruby-lang.org/issues/20615 * Author: taichi730 (Taichi Ishitani) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/

Issue #20615 has been updated by taichi730 (Taichi Ishitani). 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] A regex pattern including an unicode property is not matched correctly. ``` ruby /\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. ---------------------------------------- Bug #20615: [Regexp] Incorrect match result for Regexp including unicode property https://bugs.ruby-lang.org/issues/20615#change-109002 * Author: taichi730 (Taichi Ishitani) * Status: Open * ruby -v: 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/

Issue #20615 has been updated by taichi730 (Taichi Ishitani). This regexp pattern is invalid. Sorry for my mistake. ---------------------------------------- Bug #20615: [Regexp] Incorrect match result for Regexp including unicode property https://bugs.ruby-lang.org/issues/20615#change-109004 * Author: taichi730 (Taichi Ishitani) * Status: Open * ruby -v: 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- A regex pattern including an unicode property is not matched correctly. ``` ruby /\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. -- https://bugs.ruby-lang.org/
participants (1)
-
taichi730 (Taichi Ishitani)