Bad merge. Oddly not caught by autospec.

This commit is contained in:
Robin Ward 2013-05-27 10:56:55 -04:00
parent e1781240a6
commit 7d763a6f0c

View file

@ -53,7 +53,7 @@ class TextSentinel
def seems_unpretentious?
# Don't allow super long words if there is a word length maximum
@opts[:max_word_length].blank? || (@text.split(/\W/).map(&:size).max <= @opts[:max_word_length])
@opts[:max_word_length].blank? || @text.split(/\s/).map(&:size).max <= @opts[:max_word_length]
end