Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
mkristian committed Dec 2, 2014
1 parent 8a5ea5c commit 329bad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/jirb
Expand Up @@ -9,7 +9,7 @@

require "irb"

if __FILE__.sub(/file:/, '') == $0.sub(/file:/, '')
if __FILE__.sub(/file:/, '').gsub(/ /,'%20') == $0.gsub(/file:/, '').gsub(/ /,'%20')
IRB.start(__FILE__)
else
# check -e option
Expand Down

0 comments on commit 329bad2

Please sign in to comment.