We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48682c2 commit 5f78743Copy full SHA for 5f78743
app/services/discourse_translator/base.rb
@@ -79,9 +79,8 @@ def self.strip_tags_for_detection(detection_text)
79
end
80
81
def self.text_for_detection(topic_or_post)
82
- strip_tags_for_detection(get_text(topic_or_post)).truncate(
83
- DETECTION_CHAR_LIMIT,
84
- omission: nil,
+ strip_tags_for_detection(
+ get_text(topic_or_post).truncate(DETECTION_CHAR_LIMIT, omission: nil),
85
)
86
87
0 commit comments