mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-20 03:52:43 +00:00
When doing a conversation search, if the search term includes any regular expression characters and the search returns results, then this function would throw an exception. For example, if a conversation includes the text "+15555550111" and you search for "+15555550111" then you get an exception like: > Invalid regular expression: /(+15555550111)/: Nothing to repeat Because the "+" is not escaped.