DEV: Cleanup misspelled TextHelper param

This commit is contained in:
Penar Musaraj 2019-10-31 09:32:42 -04:00
parent f8b72d9835
commit 15b25547bb

View File

@ -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