better regexp

This commit is contained in:
Valery Sizov 2015-11-19 00:03:45 +02:00
parent 23df515fd0
commit db91ef3a2a

View file

@ -35,7 +35,7 @@ module Notes
end
def contains_emoji_only?(note)
note =~ /^:[-_+[:alnum:]]*:\s?/
note =~ /\A:[-_+[:alnum:]]*:\s?\z/
end
def emoji_name(note)