lib/eveveneno_palindrome.rb in eveveneno_palindrome-1.0.0 vs lib/eveveneno_palindrome.rb in eveveneno_palindrome-1.1.0

- old
+ new

@@ -1,10 +1,14 @@ require_relative "eveveneno_palindrome/version" module EvevenenoPalindrome # Returns true for a palindrome, false otherwise. def palindrome? def palindrome? - processed_content == processed_content.reverse + if processed_content.empty? + false + else + processed_content == processed_content.reverse + end end private # Returns content for palindrome testing. \ No newline at end of file