From 7d763a6f0c99461743898a4e4460e3b10ea9eb4f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 27 May 2013 10:56:55 -0400 Subject: [PATCH] Bad merge. Oddly not caught by autospec. --- lib/text_sentinel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/text_sentinel.rb b/lib/text_sentinel.rb index e7c75f64d..230791e62 100644 --- a/lib/text_sentinel.rb +++ b/lib/text_sentinel.rb @@ -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