mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Bad merge. Oddly not caught by autospec.
This commit is contained in:
parent
e1781240a6
commit
7d763a6f0c
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class TextSentinel
|
||||||
|
|
||||||
def seems_unpretentious?
|
def seems_unpretentious?
|
||||||
# Don't allow super long words if there is a word length maximum
|
# 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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue