From 46b138a4fb824fc3f44b582f1110d2156463f54e 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/branches/ruby_1_8@7733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/usage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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