We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9a01b commit 5d91b4aCopy full SHA for 5d91b4a
app/try_ruby.rb
@@ -397,7 +397,7 @@ def show_result(retval)
397
# Do not check the answer if there is no regexp matcher
398
if @current_item && @current_item.answer
399
# Get last line of output
400
- value_to_check = @output_buffer.length > 0 && !@output_buffer.last.empty? ? @output_buffer.last.chomp : ''
+ value_to_check = @output_buffer.join.rstrip.lines.last
401
402
# Check if output matches the defined answer regexp
403
# and print status message
0 commit comments