lib/twitter-text/validation.rb in twitter-text-1.9.2 vs lib/twitter-text/validation.rb in twitter-text-1.10.0

- old
+ new

@@ -47,10 +47,10 @@ def tweet_invalid?(text) return :empty if !text || text.empty? begin return :too_long if tweet_length(text) > MAX_LENGTH return :invalid_characters if Twitter::Regex::INVALID_CHARACTERS.any?{|invalid_char| text.include?(invalid_char) } - rescue ArgumentError => e + rescue ArgumentError # non-Unicode value. return :invalid_characters end return false