lib/highline/question.rb in malysz87-highline-1.5.4 vs lib/highline/question.rb in malysz87-highline-1.5.5

- old
+ new

@@ -254,11 +254,10 @@ "You must give at least #{@at_least} answers", :not_in_range => "Your answer isn't within the expected range " + "(#{expected_range}).", :not_valid => - "Your answer isn't valid (must match " + - "#{@validate.inspect})." }.merge(@responses) + "Your answer isn't valid" + (@validate.is_a?(Regexp) ? " (must match #{@validate.inspect})." : "") }.merge(@responses) ### WARNING: This code is quasi-duplicated in ### ### Menu.update_responses(). Check there too when ### ### making changes! ### end