Skip to content

Fix falsely treat some symbols as emoji

Gary Wang requested to merge garywang/neochat:avoid-symbols-as-emoji into master

The original regex seems from https://www.regextester.com/106421 which will falsely treat some symbols as emojis, for example:

,。“”——《》『』ぁあ

They are Chinese symbols and Japanese kanjis, thus not emoji. This patch adjust this range so could avoid matching these symbols but still passing the https://www.regextester.com/10642 check.

Please note that this regex is still not accurate. This proposal have an equivalent regular expression but that regex is very large so I'm not using that one directly...

Edited by Gary Wang

Merge request reports