and we got this error in console:
Uncaught SyntaxError: Invalid regular expression: /(1 /: Unterminated group
at new RegExp ()
at index.js:180
at Array.reduce ()
at defaultFindChunks (index.js:173)
at findAll (index.js:112)
at Highlighter (Highlighter.js:48)
at mountIndeterminateComponent (react-dom.development.js:8574)
at beginWork (react-dom.development.js:8978)
at performUnitOfWork (react-dom.development.js:11814)
at workLoop (react-dom.development.js:11843)
hi. thank for this lib :)
when using it, we encountered a situation where the word to be highlighted is: "(1 ".
and we got this error in console: Uncaught SyntaxError: Invalid regular expression: /(1 /: Unterminated group at new RegExp ()
at index.js:180
at Array.reduce ()
at defaultFindChunks (index.js:173)
at findAll (index.js:112)
at Highlighter (Highlighter.js:48)
at mountIndeterminateComponent (react-dom.development.js:8574)
at beginWork (react-dom.development.js:8978)
at performUnitOfWork (react-dom.development.js:11814)
at workLoop (react-dom.development.js:11843)