mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 16:29:32 +08:00
UX: Strip multiline comments in github oneboxes (#30040)
We were already stripping comments from GitHub issue/PR oneboxes, but the regex was not correctly matching multiline comments.
This commit is contained in:
@ -9,7 +9,7 @@ module Onebox
|
||||
end
|
||||
|
||||
module InstanceMethods
|
||||
GITHUB_COMMENT_REGEX = /<!--.*?-->/
|
||||
GITHUB_COMMENT_REGEX = /<!--.*?-->/m
|
||||
MAX_BODY_LENGTH = 80
|
||||
|
||||
def compute_body(body)
|
||||
|
Reference in New Issue
Block a user