ruby-changes:12728
From: yugui <ko1@a...>
Date: Sun, 9 Aug 2009 15:03:30 +0900 (JST)
Subject: [ruby-changes:12728] Ruby:r24477 (trunk): * tool/compile_prelude.rb: fixes a regexp pattern for require.
yugui 2009-08-09 02:11:39 +0900 (Sun, 09 Aug 2009) New Revision: 24477 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24477 Log: * tool/compile_prelude.rb: fixes a regexp pattern for require. It had matched 'require("foo"('. Modified files: trunk/ChangeLog trunk/tool/compile_prelude.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 24476) +++ ChangeLog (revision 24477) @@ -1,3 +1,8 @@ +Sun Aug 9 02:07:41 2009 Yuki Sonoda (Yugui) <yugui@y...> + + * 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@r...> * bignum.c (bigzero_p): removing BDIGITS() inside of the Index: tool/compile_prelude.rb =================================================================== --- tool/compile_prelude.rb (revision 24476) +++ tool/compile_prelude.rb (revision 24477) @@ -51,8 +51,8 @@ "nil" end } - if /require\s*(\(?)\s*(["'])(.*?)\2\s*\1/ =~ line - orig, path = $&, $3 + if /require\s*\(?\s*(["'])(.*?)\1\s*\)?/ =~ line + orig, path = $&, $2 srcdir = File.expand_path("../..", __FILE__) path = File.expand_path(path, srcdir) if File.exist?(path) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/