Feature: allow search to take in a RegExp #105
Labels
good first issue
Good for newcomers, please hop on!
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Change
emoji.search()
to return emoji whose name contains the search string. I can imagine two approaches:emoji.search('evil')
β[{ key: 'see_no_evil', emoji: 'π' }, { key: 'see_no_evil', emoji: 'π' }, { key: 'see_no_evil', emoji: 'π' }]
. (Example results not exhaustive.)emoji.search('.*evil')
β[{ key: 'see_no_evil', emoji: 'π' }, { key: 'see_no_evil', emoji: 'π' }, { key: 'see_no_evil', emoji: 'π' }]
. (Example results not exhaustive.)The text was updated successfully, but these errors were encountered: