Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
get better pattern matching for uri-like path for jirb
if the path to jruby-complete.jar contains a space the various uri-like path strings do not match (file: or no protocol, ' ' or '%20') should be treated equaly. Sponsored by Lookout Inc.
- Loading branch information
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -9,7 +9,7 @@ | ||
|
||
require "irb" | ||
|
||
if __FILE__.sub(/file:/, '').gsub(/ /,'%20') == $0.gsub(/file:/, '').gsub(/ /,'%20') | ||
IRB.start(__FILE__) | ||
else | ||
# check -e option | ||