Project

General

Profile

Backport #114

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

Added by Anonymous about 12 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
[ruby-dev:34996]

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]
#

% ./ruby -ve 'p(/(?:a)bc\A?/.match(""))'
ruby 1.8.7 (2008-06-08 patchlevel 5000) [i686-linux]
nil
--
[田中 哲][たなか あきら][Tanaka Akira]
=end

#1

Updated by matz (Yukihiro Matsumoto) about 12 years ago

  • Assignee set to matz (Yukihiro Matsumoto)

=begin

=end

#2

Updated by marcandre (Marc-Andre Lafortune) almost 11 years ago

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

=begin

=end

#3

Updated by shyouhei (Shyouhei Urabe) almost 10 years ago

  • Status changed from Open to Assigned

=begin

=end

#4

Updated by shyouhei (Shyouhei Urabe) almost 10 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

#5

Updated by shyouhei (Shyouhei Urabe) over 9 years ago

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

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

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

#6

Updated by matz (Yukihiro Matsumoto) over 9 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) about 8 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]

まだ再現します。

#8

Updated by jeremyevans0 (Jeremy Evans) 12 months ago

  • ruby -v deleted (ruby 1.8.8dev (2012-04-14 revision 27061) [x86_64-linux])
  • Status changed from Assigned to Closed
  • Project changed from Ruby 1.8 to Backport187
  • Tracker changed from Bug to Backport

Also available in: Atom PDF