Actions
Backport #114
closed/abc\A?/.match("")
Status:
Closed
Assignee:
Description
=begin
以下のように空文字列に対し /abc\A?/ はマッチしますが
/(?:a)bc\A?/ はマッチしません。
a と (?:a) の違いでそのような変化が生じるのは変ではないでしょうか。
% ./ruby -ve 'p(/abc\A?/.match(""))'
ruby 1.8.7 (2008-06-08 patchlevel 5000) [i686-linux]
#<MatchData "">
% ./ruby -ve 'p(/(?:a)bc\A?/.match(""))'
ruby 1.8.7 (2008-06-08 patchlevel 5000) [i686-linux]
nil
[田中 哲][たなか あきら][Tanaka Akira]
=end
Updated by matz (Yukihiro Matsumoto) over 16 years ago
- Assignee set to matz (Yukihiro Matsumoto)
=begin
=end
Updated by marcandre (Marc-Andre Lafortune) over 15 years ago
- Category set to core
- ruby -v set to ruby 1.8.7 (2008-06-08 patchlevel 5000) [i686-linux]
=begin
=end
Updated by shyouhei (Shyouhei Urabe) over 14 years ago
- Status changed from Open to Assigned
=begin
=end
Updated by shyouhei (Shyouhei Urabe) about 14 years ago
- ruby -v changed from ruby 1.8.7 (2008-06-08 patchlevel 5000) [i686-linux] to ruby 1.8.8dev (2010-09-24 revision 27061) [x86_64-linux]
=begin
どうも今redmineで未解決のissueの中ではこれが一番古そうなのですが、まだ再現します。
=end
Updated by shyouhei (Shyouhei Urabe) about 14 years ago
=begin
(2010/12/19 22:52), Yukihiro Matsumoto wrote:
私の反応が悪い時はつついてく
ださい。
どうなってるんですか?
=end
Updated by matz (Yukihiro Matsumoto) about 14 years ago
=begin
まつもと ゆきひろです
In message "Re: [ruby-dev:42815] [Ruby 1.8-Bug#114] /abc\A?/.match("")"
on Mon, 20 Dec 2010 01:47:41 +0900, Shyouhei Urabe redmine@ruby-lang.org writes:
|(2010/12/19 22:52), Yukihiro Matsumoto wrote:
|> 私の反応が悪い時はつついてく
|> ださい。
|
|どうなってるんですか?
バグであり直すべきだと思います。
=end
Updated by shyouhei (Shyouhei Urabe) over 12 years ago
- Description updated (diff)
- ruby -v changed from ruby 1.8.8dev (2010-09-24 revision 27061) [x86_64-linux] to ruby 1.8.8dev (2012-04-14 revision 27061) [x86_64-linux]
まだ再現します。
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby 1.8 to Backport187
- Status changed from Assigned to Closed
- ruby -v deleted (
ruby 1.8.8dev (2012-04-14 revision 27061) [x86_64-linux])
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0