The regex for the "(?_?)" emoticon is wrong, it just matches ")"
Ronserruya opened this issue · comments
Ron Serruya commented
Im not sure this library is maintained, seeing as the last release is from 2018, but anyway
The current regex that is used is "\(?_?\)"
, the question marks are not escaped so "(?_?)"
is never matched, in addition, this also causes ")" to be matched
Just need to change it to "\(\?_\?\)"
Note that a question mark needs to be escaped since in regex a question mark means that the previous character is optional
Neel Shah commented
It is fix in new version 3.0 version. You can try new 3.0 version from branch. I will launch new version this week.