Skip to content
Snippets Groups Projects
Commit 350f61c3 authored by Valery Sizov's avatar Valery Sizov Committed by Rubén Dávila
Browse files

better regexp

parent d7955987
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment