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

Merge pull request #977 from sbryant/no-string-suffixes

Fix ruby 2.1 string issue.
This commit is contained in:
Robert 2013-09-11 14:18:26 -07:00
commit f5ba4de3ca

View file

@ -51,7 +51,7 @@ class Pry
colorized = colorized.sub(/(\n*)\z/, "\e[0m\\1") if Pry.color colorized = colorized.sub(/(\n*)\z/, "\e[0m\\1") if Pry.color
result = colorized.gsub(/%<(.*?)#{nonce}/, '#<\1') result = colorized.gsub(/%<(.*?)#{nonce}/, '#<\1')
result = "=> #{result}"if options[:hashrocket] result = "=> #{result}" if options[:hashrocket]
Helpers::BaseHelpers.stagger_output(result, output) Helpers::BaseHelpers.stagger_output(result, output)
end end