emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: 23.0.0; (thing-at-point 'url) returns invalid urls]


From: Davis Herring
Subject: Re: address@hidden: 23.0.0; (thing-at-point 'url) returns invalid urls]
Date: Tue, 4 Sep 2007 15:37:08 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-6.el3.2lanl

> To require that a url must contain a '.' in it is able to reduce the
> risk of returning random urls by more than 90%.

I would test for a '.', and for a '/', and for an explicit scheme (some,
like "mailto:";, do not come along with slashes).  If any of those pass,
it's probably (that is, it is IMHO sufficiently rare that it won't be) a
URL.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]