Some mentions can be invalid. For example, Telegram only highlights mentions that are in fact valid and existing users.
A simple solution for that would be to have an option to disable auto-coloring, so that I can check for mention validity in a text-watcher and only call colorize() if that mention is in fact valid
Some mentions can be invalid. For example, Telegram only highlights mentions that are in fact valid and existing users.
A simple solution for that would be to have an option to disable auto-coloring, so that I can check for mention validity in a text-watcher and only call
colorize()if that mention is in fact valid