1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

last spec, green! (pry load order also is a PITA).

This commit is contained in:
Robert Gleeson 2014-01-21 10:53:45 +01:00
parent fea2e22c0d
commit f3cde86a79

View file

@ -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]