FIX: Allow long words if they contain periods

This commit is contained in:
Robin Ward
2015-05-19 13:10:25 -04:00
parent 4685d833b5
commit 4ab9ef3497
2 changed files with 5 additions and 1 deletions

View File

@@ -67,7 +67,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(/\s|\/|-/).map(&:size).max <= @opts[:max_word_length]
@opts[:max_word_length].blank? || @text.split(/\s|\/|-|\./).map(&:size).max <= @opts[:max_word_length]
end