summaryrefslogtreecommitdiff
path: root/lib/irb/locale.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/locale.rb')
-rw-r--r--lib/irb/locale.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index 9c96d15..9924409 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -1,6 +1,6 @@
#
# irb/locale.rb - internationalization module
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -141,7 +141,7 @@ module IRB
dir = File.dirname(file)
dir = "" if dir == "."
base = File.basename(file)
- if dir[0] == ?/ #/
+ if dir =~ /^\//
return lc_path = search_file(dir, base)
else
for path in $: