Closed Lemaro86 closed 6 years ago
If textToHighlight have bracket, for example: textToHighlight='Hi (friend)'
I have got error if i remove this bracket: textToHighlight='Hi (friend'
main.js:375 Uncaught SyntaxError: Invalid regular expression: /БАНК "ТАВРИЧЕСКИЙ" (ОАО/: Unterminated group
I think trouble in 'highlight-words-core' in function escapeRegExpFn
autoEscape= true resolve it. forgive me for dullness
No worries. Glad you figured it out..
If textToHighlight have bracket, for example: textToHighlight='Hi (friend)'
I have got error if i remove this bracket: textToHighlight='Hi (friend'
main.js:375 Uncaught SyntaxError: Invalid regular expression: /БАНК "ТАВРИЧЕСКИЙ" (ОАО/: Unterminated group
I think trouble in 'highlight-words-core' in function escapeRegExpFn