Commit db6bf446 by Colin Rice

Adding an escape sequence so regex doesn't fail when parsing asterisk

unicode.
parent 8470bfed
...@@ -4,7 +4,7 @@ require 'set' ...@@ -4,7 +4,7 @@ require 'set'
module Rumoji module Rumoji
class Emoji class Emoji
NEWMOJI = SortedSet[ NEWMOJI = SortedSet[
self.new("\u{002A FE0F 20E3}", [:keycap_star]), self.new(Regexp.escape("\u{002A FE0F 20E3}"), [:keycap_star]),
self.new("\u{1F1FA 1F1F3}", [:"flag-un"]), self.new("\u{1F1FA 1F1F3}", [:"flag-un"]),
self.new("\u{1F324 FE0F}", [:sun_small_cloud]), self.new("\u{1F324 FE0F}", [:sun_small_cloud]),
self.new("\u{1F325 FE0F}", [:sun_behind_cloud]), self.new("\u{1F325 FE0F}", [:sun_behind_cloud]),
......
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