diff --git a/lib/debug/console.rb b/lib/debug/console.rb index 533e4c8de..8e4dfaa7c 100644 --- a/lib/debug/console.rb +++ b/lib/debug/console.rb @@ -52,7 +52,7 @@ def readline_setup prompt end files else - commands.keys.grep(/\A#{given}/) + commands.keys.grep(/\A#{Regexp.escape(given)}/) end end