Skip to content
Permalink
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
mkristian committed Dec 2, 2014
1 parent 8a5ea5c commit 329bad282d2242aa314996175ec6f416cb5ceb20
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/jirb
@@ -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

0 comments on commit 329bad2

Please sign in to comment.