DCzajkowski / vue-emoji-picker

Very simple, yet powerful, vue emoji picker 🎉🔥🚀
MIT License
332 stars 49 forks source link

Exception thrown beginning a search with '+' #21

Closed calebbergman closed 3 years ago

calebbergman commented 3 years ago

Typing a plus character '+' in the search box results in, "SyntaxError: Invalid regular expression: /.+./: Nothing to repeat."

DCzajkowski commented 3 years ago

Indeed, we should escape any regex-special chars here using this.

Does anyone want to create a PR with this?

DCzajkowski commented 3 years ago

Version 1.0.3 was released, that addresses the issue. Thanks @calebbergman for helping!