1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Allow for colons in DOS file names

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2005-01-05 23:02:50 +00:00
parent a0be45773e
commit 556a2682d1
2 changed files with 6 additions and 1 deletions

View file

@ -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