From: "taichi730 (Taichi Ishitani) via ruby-dev" <ruby-dev@ml.ruby-lang.org>
To: ruby-dev@ml.ruby-lang.org
Cc: "taichi730 (Taichi Ishitani)" <noreply@ruby-lang.org>
Subject: [ruby-dev:52094] [Ruby master Bug#20615] [Regexp] Incorrect match result for Regexp including unicode property
Date: Mon, 08 Jul 2024 14:43:42 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-109002.20240708144342.52440@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-20615.20240708143446.52440@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/
_______________________________________________
ruby-dev mailing list -- ruby-dev@ml.ruby-lang.org
To unsubscribe send an email to ruby-dev-leave@ml.ruby-lang.org
next prev parent reply other threads:[~2024-07-08 14:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 14:34 [ruby-dev:52093] [Ruby master Bug#20615] [Regexp] Different match result between using a character class and an " taichi730 (Taichi Ishitani) via ruby-dev
2024-07-08 14:43 ` taichi730 (Taichi Ishitani) via ruby-dev [this message]
2024-07-08 14:47 ` [ruby-dev:52095] [Ruby master Bug#20615] [Regexp] Incorrect match result for Regexp including " taichi730 (Taichi Ishitani) via ruby-dev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-109002.20240708144342.52440@ruby-lang.org \
--to=ruby-dev@ml.ruby-lang.org \
--cc=noreply@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).