зеркало из https://github.com/github/ruby.git
* re.c (rb_reg_search): fix: 4th argument should be regexp
object. patched by shintaro kuwamoto [ruby-dev:41667] #3459 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
815ab02971
Коммит
d078f51f57
|
@ -1,3 +1,8 @@
|
|||
Mon Aug 23 12:28:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_search): fix: 4th argument should be regexp
|
||||
object. patched by shintaro kuwamoto [ruby-dev:41667] #3459
|
||||
|
||||
Mon Aug 23 02:23:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* util.c (ruby_strtod): make sure to have digit-sequence after 'p'
|
||||
|
|
2
re.c
2
re.c
|
@ -1395,7 +1395,7 @@ rb_reg_search(VALUE re, VALUE str, long pos, int reverse)
|
|||
else {
|
||||
onig_errmsg_buffer err = "";
|
||||
onig_error_code_to_str((UChar*)err, (int)result);
|
||||
rb_reg_raise(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re), err, 0);
|
||||
rb_reg_raise(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re), err, re);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче