Chatwoot/app/helpers/message_format_helper.rb

6 lines
159 B
Ruby

module MessageFormatHelper
include RegexHelper
def transform_user_mention_content(message_content)
message_content.gsub(MENTION_REGEX, '\1')
end
end