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?
URL Scan
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.
Last edited by Sergey Tkachenko on Thu Sep 02, 2010 10:35 am, edited 2 times in total.