Page 1 of 1

URL Scan

Posted: Tue Jul 06, 2010 1:40 pm
by charles.lambert
When we end a sentence with an e-mail adress and a dot, the dot is taken as if it was a part of the URL.

Exemple: This is my e-mail address [email protected].

The url target is "[email protected]."

Is there a way to prevent that?

Posted: Wed Jul 07, 2010 3:33 pm
by Sergey Tkachenko
Well, I think I can improve this demo. RichViewActions already have better URL detection procedure that do not have this problem.

I'll try to make it later this week, may be already tomorrow.

Posted: Sat Jul 10, 2010 7:40 pm
by Sergey Tkachenko
Here is improved URLScan.pas unit from this demo:
http://www.trichview.com/support/files/urlscan.zip
In this version,
- it does not include a final dot in url;
- it includes a closing bracket in url only if it already contains an opening bracket of the same type.

If I remember correctly, this version of the unit requires TRichView v12.3 or newer, because it uses character constants like RVCHAR_LQUOTE. If you use older version (for example, a trial), replace these constants to the corresponding character constant.

Posted: Mon Jul 12, 2010 12:43 pm
by charles.lambert
Thanks Sergey!