зеркало из https://github.com/github/ruby.git
* string.c (rb_str_scan): already String#scan behaves differently
regarding if block is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
47bc0b9013
Коммит
8dcf7f931f
|
@ -1,3 +1,8 @@
|
|||
Wed Aug 31 06:59:01 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_scan): already String#scan behaves differently
|
||||
regarding if block is given.
|
||||
|
||||
Tue Aug 30 23:49:34 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* array.c, dir.c, enum.c, hash.c, io.c, range.c, string.c, struct.c:
|
||||
|
|
2
string.c
2
string.c
|
@ -4272,8 +4272,6 @@ rb_str_scan(str, pat)
|
|||
long start = 0;
|
||||
VALUE match = Qnil;
|
||||
|
||||
RETURN_ENUMERATOR(str, 1, &pat);
|
||||
|
||||
pat = get_pat(pat, 1);
|
||||
if (!rb_block_given_p()) {
|
||||
VALUE ary = rb_ary_new();
|
||||
|
|
Загрузка…
Ссылка в новой задаче