PDA

View Full Version : feature request: added logic to auto URL linking (remove . , ) )


boatdesign
Wed 19th Sep '01, 4:37am
I am finding that each new person to my forum is posting http://url.com. or http://url.com, and the periods and commas are getting added to and 'corrupting' the auto linked URL's. Would it be difficult in the next version to add some logic to the URL autolinking so that trailing commas, periods, etc. are not added to the URL?

I don't ever recall seeing a URL with a period or comma directly before or after the "/" or after the com net or org for example, so it would seem these could be checked for and (re)moved.

Mike Sullivan
Wed 19th Sep '01, 2:17pm
I spent a couple hours trying to do that a couple months ago -- it worked about 75% of the time.

However, I might be able to do it know that I've seen look ahead references. Just not 100% sure how efficient they are.