react-native-highlight-text icon indicating copy to clipboard operation
react-native-highlight-text copied to clipboard

App crash when searchWord prop fill with bracket

Open mhendyl opened this issue 2 years ago • 1 comments

I have an issue that when search word fill with pair of bracket () will crash

Simulator Screen Shot - iPhone Xʀ - 2022-05-19 at 18 19 06

is there any way to fix this? i can't find the code

mhendyl avatar May 20 '22 08:05 mhendyl

You need to pass autoEscape to component to prevent usage of special symbols of RegExp in findAll.

P.S. I think that it should be true IMHO.

underoot avatar May 20 '22 14:05 underoot