Merge branch 'kb_development' into kb_migration
This commit is contained in:
commit
93de8e17f1
1 changed files with 1 additions and 3 deletions
|
@ -30,9 +30,7 @@ class CustomEmoji < ApplicationRecord
|
||||||
|
|
||||||
SHORTCODE_RE_FRAGMENT = '[a-zA-Z0-9_]{2,}'
|
SHORTCODE_RE_FRAGMENT = '[a-zA-Z0-9_]{2,}'
|
||||||
|
|
||||||
SCAN_RE = /(?<=[^[:alnum:]:]|\n|^)
|
SCAN_RE = /:(#{SHORTCODE_RE_FRAGMENT}):/x
|
||||||
:(#{SHORTCODE_RE_FRAGMENT}):
|
|
||||||
(?=[^[:alnum:]:]|$)/x
|
|
||||||
SHORTCODE_ONLY_RE = /\A#{SHORTCODE_RE_FRAGMENT}\z/
|
SHORTCODE_ONLY_RE = /\A#{SHORTCODE_RE_FRAGMENT}\z/
|
||||||
|
|
||||||
IMAGE_MIME_TYPES = %w(image/png image/gif image/webp).freeze
|
IMAGE_MIME_TYPES = %w(image/png image/gif image/webp).freeze
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue