NeelShah18 / emot

Open source Emoticons and Emoji detection library: emot

Home Page:https://pypi.org/project/emot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The regex for the "(?_?)" emoticon is wrong, it just matches ")"

Ronserruya opened this issue · comments

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

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.