Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

regexp escape fix for tab completion, contributed by Michael Schutte

  • Loading branch information...
commit f66716356c135f7fa986d52e04b6a8726fdc4c93 1 parent cd21934
Adam Wiggins authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/rush/shell.rb
2  lib/rush/shell.rb
@@ -119,7 +119,7 @@ def completion_proc
119 119
 					if full_path and box
120 120
 						dir = Rush::Dir.new(full_path, box)
121 121
 						return dir.entries.select do |e|
122  
-							e.name.match(/^#{partial_path}/)
  122
+							e.name.match(/^#{Regexp.escape(partial_path)}/)
123 123
 						end.map do |e|
124 124
 							(pre || '') + original_var + '[' + quote + fixed_path + e.name + (e.dir? ? "/" : "")
125 125
 						end

0 notes on commit f667163

Please sign in to comment.
Something went wrong with that request. Please try again.