diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/rdoc/usage.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jan 6 07:58:28 2005 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/usage.rb (RDoc::RDoc.usage_no_exit): Allow for colons + in path names on DOS machines. (thanks to Johan Nilsson) + Wed Jan 5 20:16:32 2005 Tanaka Akira <akr@m17n.org> * random.c (limited_big_rand): didn't work if SIZEOF_BDIGITS == 2. 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 |
