We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change emoji.search() to return emoji whose name contains the search string. I can imagine two approaches:
emoji.search()
emoji.search('evil')
[{ key: 'see_no_evil', emoji: 'π' }, { key: 'see_no_evil', emoji: 'π' }, { key: 'see_no_evil', emoji: 'π' }]
emoji.search('.*evil')
The text was updated successfully, but these errors were encountered:
Always treat the argument as a substring
I think that is the current behaviour.
Allow standard regular expressions in the argument
We could allow RegExp objects to be passed that are evaluated for each emoji.
Sorry, something went wrong.
No branches or pull requests
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: