StoryCacher: keep converting 3 newlines to 2
This commit is contained in:
parent
00eda60fdc
commit
33f72fc634
|
@ -27,7 +27,9 @@ class StoryCacher
|
|||
if res.present?
|
||||
j = JSON.parse(res)
|
||||
|
||||
return j["text"]
|
||||
while j["text"].match("\n\n\n")
|
||||
j["text"].gsub!("\n\n\n", "\n\n")
|
||||
end
|
||||
end
|
||||
|
||||
rescue => e
|
||||
|
|
Loading…
Reference in a new issue