Commit db91ef3a authored by Valery Sizov's avatar Valery Sizov

better regexp

parent 23df515f
...@@ -35,7 +35,7 @@ module Notes ...@@ -35,7 +35,7 @@ module Notes
end end
def contains_emoji_only?(note) def contains_emoji_only?(note)
note =~ /^:[-_+[:alnum:]]*:\s?/ note =~ /\A:[-_+[:alnum:]]*:\s?\z/
end end
def emoji_name(note) def emoji_name(note)
......
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