2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

rename max_word_length to title_max_word_length

This commit is contained in:
Sam 2015-04-02 16:46:53 +11:00
parent 2a2bd3e946
commit 1f59375c82
19 changed files with 19 additions and 19 deletions

View file

@ -30,7 +30,7 @@ class TextSentinel
else
(SiteSetting.min_topic_title_length.to_f * ENTROPY_SCALE).to_i
end
TextSentinel.new(text, min_entropy: entropy, max_word_length: SiteSetting.max_word_length)
TextSentinel.new(text, min_entropy: entropy, max_word_length: SiteSetting.title_max_word_length)
end
# Entropy is a number of how many unique characters the string needs.