Skip to content

Commit

Permalink
quick fix for empty input stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Clifford committed Jul 26, 2017
1 parent ba75148 commit c901de7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def group_equal_indices(arr)
end

def input
i = $stdin.gets.chomp
i = $stdin.gets
i.chomp! unless i.nil?
@inputs << x =
if /\[(.*?)\]/ =~ i || i == 'true' || i == 'false'
eval(i)
Expand Down

0 comments on commit c901de7

Please sign in to comment.