better regexp
This commit is contained in:
parent
23df515fd0
commit
db91ef3a2a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue