mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
remove trailing whitespaces ❤️
This commit is contained in:
@@ -91,7 +91,7 @@ class PostRevisor
|
||||
# If found, update its description
|
||||
body = @post.cooked
|
||||
matches = body.scan(/\<p\>(.*)\<\/p\>/)
|
||||
if matches and matches[0] and matches[0][0]
|
||||
if matches and matches[0] and matches[0][0]
|
||||
new_description = matches[0][0]
|
||||
new_description = nil if new_description == I18n.t("category.replace_paragraph")
|
||||
category.update_column(:description, new_description)
|
||||
|
Reference in New Issue
Block a user