mathiasbynens / emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.
https://mths.be/emoji-regex
MIT License
1.74k stars 174 forks source link

Use emojiRegex as function in README code example #11

Closed nizaroni closed 7 years ago

nizaroni commented 7 years ago

Hello! I noticed that in the README code example you have a comment that mentions that emojiRegex is a function, but the rest of the code still tries to use it as a regex.

I've made a tiny update to the example so that its used as a function.

Thanks for all your awesome work!