Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
9264284cf4
163 changed files with 3596 additions and 1088 deletions
|
@ -3,7 +3,7 @@
|
|||
class EmojiFormatter
|
||||
include RoutingHelper
|
||||
|
||||
DISALLOWED_BOUNDING_REGEX = /[[:alnum:]:]/.freeze
|
||||
DISALLOWED_BOUNDING_REGEX = /[[:alnum:]:]/
|
||||
|
||||
attr_reader :html, :custom_emojis, :options
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class PlainTextFormatter
|
||||
include ActionView::Helpers::TextHelper
|
||||
|
||||
NEWLINE_TAGS_RE = /(<br \/>|<br>|<\/p>)+/.freeze
|
||||
NEWLINE_TAGS_RE = /(<br \/>|<br>|<\/p>)+/
|
||||
|
||||
attr_reader :text, :local
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ class TextFormatter
|
|||
include ERB::Util
|
||||
include RoutingHelper
|
||||
|
||||
URL_PREFIX_REGEX = /\A(https?:\/\/(www\.)?|xmpp:)/.freeze
|
||||
URL_PREFIX_REGEX = /\A(https?:\/\/(www\.)?|xmpp:)/
|
||||
|
||||
DEFAULT_REL = %w(nofollow noopener noreferrer).freeze
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue