From 44e194195a4c2b3fdaf6b6cd8096ff663f045560 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 5 Jan 2005 23:02:50 +0000 Subject: Allow for colons in DOS file names git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rdoc/usage.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7c7e001b2..26036ebde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 6 07:58:28 2005 Dave Thomas + + * lib/rdoc/usage.rb (RDoc::RDoc.usage_no_exit): Allow for colons + in path names on DOS machines. (thanks to Johan Nilsson) + Thu Jan 6 00:02:35 2005 Masatoshi SEKI * test/rinda/test_rinda.rb: use MockClock.sleep instead of Kernel.sleep diff --git a/lib/rdoc/usage.rb b/lib/rdoc/usage.rb index da6593d89..3e64cd643 100644 --- a/lib/rdoc/usage.rb +++ b/lib/rdoc/usage.rb @@ -96,7 +96,7 @@ module RDoc # Display usage def RDoc.usage_no_exit(*args) - main_program_file, = caller[-1].split(/:/, 2) + main_program_file, = caller[-1].split(/:\d+/, 2) comment = File.open(main_program_file) do |file| find_comment(file) end -- cgit