hlop4ik, thanks for trying to help!
Unfortunately your algorithm won't work correctly in the following situations:
sample text sample text (
http://cintanotes.com), sample sample
sample text
http://link.com, sample sample
sample cintanotes.com sample
Actually only a minor tweak to the regex is needed for emails to be highlighted correctly.
A little bit more work is needed to actually open a mail client when URL is without the "mailto:" prefix. But it is also straightforward.
So this will be fixed in the next update.