mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:16:00 +08:00
DEV: Apply syntax_tree formatting to lib/*
This commit is contained in:
@ -14,7 +14,7 @@ module Onebox
|
||||
|
||||
def compute_body(body)
|
||||
if body
|
||||
body = body.gsub(GITHUB_COMMENT_REGEX, '').strip
|
||||
body = body.gsub(GITHUB_COMMENT_REGEX, "").strip
|
||||
if body.length == 0
|
||||
body = nil
|
||||
elsif body.length > MAX_BODY_LENGTH
|
||||
|
Reference in New Issue
Block a user