Add no-spacing custom emoji code support
This commit is contained in:
parent
df6f55b750
commit
e1357cc08f
1 changed files with 1 additions and 3 deletions
|
@ -30,9 +30,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…
Add table
Add a link
Reference in a new issue