Commit 3a63f6f3 authored by Robert Speicher's avatar Robert Speicher

Simplify EMOJI_PATTERN

parent 8808c5fa
...@@ -35,7 +35,7 @@ module Gitlab ...@@ -35,7 +35,7 @@ module Gitlab
([^\w&;])? # Suffix (6) ([^\w&;])? # Suffix (6)
}x.freeze }x.freeze
EMOJI_PATTERN = %r{(:([\w\-\+]+):)}.freeze EMOJI_PATTERN = %r{(:(\S+):)}.freeze
attr_reader :html_options attr_reader :html_options
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment