From f3cde86a79f8f546ec42fd91bf84419ca32d5f02 Mon Sep 17 00:00:00 2001 From: Robert Gleeson Date: Tue, 21 Jan 2014 10:53:45 +0100 Subject: [PATCH] last spec, green! (pry load order also is a PITA). --- lib/pry/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/command.rb b/lib/pry/command.rb index 158fa3f4..77d9f9b8 100644 --- a/lib/pry/command.rb +++ b/lib/pry/command.rb @@ -175,7 +175,7 @@ class Pry end def command_regex - pr = defined?(Pry.config.command_prefix) ? Pry.config.command_prefix : "" + pr = Pry.respond_to?(:config) ? Pry.config.command_prefix : "" prefix = convert_to_regex(pr) prefix = "(?:#{prefix})?" unless options[:use_prefix]