Add no-spacing custom emoji code support
This commit is contained in:
parent
93e61bf392
commit
5c786b4868
@ -28,9 +28,7 @@ class CustomEmoji < ApplicationRecord
|
||||
|
||||
SHORTCODE_RE_FRAGMENT = '[a-zA-Z0-9_]{2,}'
|
||||
|
||||
SCAN_RE = /(?<=[^[:alnum:]:]|\n|^)
|
||||
:(#{SHORTCODE_RE_FRAGMENT}):
|
||||
(?=[^[:alnum:]:]|$)/x
|
||||
SCAN_RE = /:(#{SHORTCODE_RE_FRAGMENT}):/x
|
||||
SHORTCODE_ONLY_RE = /\A#{SHORTCODE_RE_FRAGMENT}\z/
|
||||
|
||||
IMAGE_MIME_TYPES = %w(image/png image/gif image/webp).freeze
|
||||
|
Loading…
Reference in New Issue
Block a user