mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Fix the emoji toned regexes (#20763)
This commit is contained in:
committed by
GitHub
parent
0562f952ed
commit
a0a6f6d71b
@@ -59,8 +59,8 @@ class Emoji
|
||||
|
||||
def self.[](name)
|
||||
name = name.delete_prefix(":").delete_suffix(":")
|
||||
is_toned = name.match?(/.+:t[1-6]/)
|
||||
normalized_name = name.gsub(/(.+):t[1-6]/, '\1')
|
||||
is_toned = name.match?(/\A.+:t[1-6]\z/)
|
||||
normalized_name = name.gsub(/\A(.+):t[1-6]\z/, '\1')
|
||||
|
||||
found_emoji = nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user