Project

General

Profile

Actions

Backport #114

closed

/abc\A?/.match("")

Added by Anonymous over 16 years ago. Updated over 5 years ago.


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

Actions #1

Updated by matz (Yukihiro Matsumoto) over 16 years ago

  • Assignee set to matz (Yukihiro Matsumoto)

=begin

=end

Actions #2

Updated by marcandre (Marc-Andre Lafortune) about 15 years ago

  • Category set to core
  • ruby -v set to ruby 1.8.7 (2008-06-08 patchlevel 5000) [i686-linux]

=begin

=end

Actions #3

Updated by shyouhei (Shyouhei Urabe) about 14 years ago

  • Status changed from Open to Assigned

=begin

=end

Actions #4

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

Actions #5

Updated by shyouhei (Shyouhei Urabe) almost 14 years ago

=begin
(2010/12/19 22:52), Yukihiro Matsumoto wrote:

私の反応が悪い時はつついてく
ださい。

どうなってるんですか?
=end

Actions #6

Updated by matz (Yukihiro Matsumoto) almost 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 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]

まだ再現します。

Actions #8

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0