Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85829839
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
925 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/lib/pleroma/emoji.ex b/lib/pleroma/emoji.ex
index a8574b41e..0faa479ea 100644
--- a/lib/pleroma/emoji.ex
+++ b/lib/pleroma/emoji.ex
@@ -145,7 +145,7 @@ defmodule Pleroma.Emoji do
def unicode?(_), do: false
- @emoji_regex ~r/\A:[A-Za-z0-9_-]+(@[A-Za-z0-9_.-]+)?:\z/
+ @emoji_regex ~r/\A:[A-Za-z0-9_-]+(@[A-Za-z0-9_.:-]+)?:\z/
def custom?(s) when is_binary(s), do: Regex.match?(@emoji_regex, s)
diff --git a/test/pleroma/emoji_test.exs b/test/pleroma/emoji_test.exs
index 38acd3ab9..a5f480aa5 100644
--- a/test/pleroma/emoji_test.exs
+++ b/test/pleroma/emoji_test.exs
@@ -34,6 +34,7 @@ defmodule Pleroma.EmojiTest do
assert Emoji.custom?(":blobcat:")
assert Emoji.custom?(":blob_cat-2:")
assert Emoji.custom?(":blobcat@remote.example:")
+ assert Emoji.custom?(":blobcat@localhost:4000:")
assert Emoji.custom?(":blobcat@.:")
refute Emoji.custom?("blobcat")
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 1, 12:50 AM (17 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802004
Default Alt Text
(925 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline