mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/compile_prelude.rb: fixes a regexp pattern for require.
It had matched 'require("foo"('. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ecfb5f625
commit
b1c4052fdf
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Aug 9 02:07:41 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
|
* tool/compile_prelude.rb: fixes a regexp pattern for require.
|
||||||
|
It had matched 'require("foo"('.
|
||||||
|
|
||||||
Sat Aug 8 11:42:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sat Aug 8 11:42:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* bignum.c (bigzero_p): removing BDIGITS() inside of the
|
* bignum.c (bigzero_p): removing BDIGITS() inside of the
|
||||||
|
|
|
@ -51,8 +51,8 @@ lines_list = preludes.map {|filename|
|
||||||
"nil"
|
"nil"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
if /require\s*(\(?)\s*(["'])(.*?)\2\s*\1/ =~ line
|
if /require\s*\(?\s*(["'])(.*?)\1\s*\)?/ =~ line
|
||||||
orig, path = $&, $3
|
orig, path = $&, $2
|
||||||
srcdir = File.expand_path("../..", __FILE__)
|
srcdir = File.expand_path("../..", __FILE__)
|
||||||
path = File.expand_path(path, srcdir)
|
path = File.expand_path(path, srcdir)
|
||||||
if File.exist?(path)
|
if File.exist?(path)
|
||||||
|
|
Loading…
Reference in a new issue