mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
DEV: Cleanup misspelled TextHelper param
This commit is contained in:
parent
f8b72d9835
commit
15b25547bb
@ -97,12 +97,11 @@ class Search
|
||||
end
|
||||
|
||||
blurb = TextHelper.excerpt(cooked, phrase,
|
||||
radius: blurb_length / 2,
|
||||
seperator: " "
|
||||
radius: blurb_length / 2
|
||||
)
|
||||
end
|
||||
|
||||
blurb = TextHelper.truncate(cooked, length: blurb_length, seperator: " ") if blurb.blank?
|
||||
blurb = TextHelper.truncate(cooked, length: blurb_length) if blurb.blank?
|
||||
Sanitize.clean(blurb)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user