Permalink
Browse files

Use correct method for string substitution in Ruby.

  • Loading branch information...
1 parent 2b81fdd commit 392c1f0aae5e1f67d6bddca4e7e1f7d185107eb5 Chad Weider committed with Aug 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/racer/adapter.rb
View
@@ -37,7 +37,7 @@ def calc_path(dirname, path)
calculated = dir_arr + calculated
return calculated.join('/')
elsif path.index('./') == 0
- return dirname + path.replace(/^\./, '')
+ return dirname + path.gsub(/^\./, '')
else
return path
end

0 comments on commit 392c1f0

Please sign in to comment.