Skip to content
New issue

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

Highlighter breaks when searching for special characters #53

Open
mshibl opened this issue May 22, 2018 · 1 comment
Open

Highlighter breaks when searching for special characters #53

mshibl opened this issue May 22, 2018 · 1 comment

Comments

@mshibl
Copy link

mshibl commented May 22, 2018

First, thank you for building this neat react component.

I've found a bug where passing any special character breaks the internal regex matching in Highlighter Component.

Here's a demo demonstrating the bug:
https://codesandbox.io/s/204r9kz6lj

@mshibl mshibl changed the title Breaks when searching for special characters Highlighter breaks when searching for special characters May 22, 2018
@ViktorSoroka07
Copy link

This is rather a bug of react-highlight-words and not of the react-highlighter current one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants