Closed kylegrover closed 4 years ago
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions suggests this code
function escapeRegExp(string){
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}
Very good point! Thanks @kylegrover. It should be fixed now.
typing ie
/
or+
into the 'Search country' field crashes the app problem occurs @ index.js:372new RegExp(countrySearchQuery.trim(), 'i')