[Sugar-devel] [PATCH Chat] Don't treat the whole word as an URL

Aleksey Lim alsroot at sugarlabs.org
Thu Apr 12 01:36:35 EDT 2012


On Wed, Apr 11, 2012 at 01:39:06PM -0300, Manuel Kaufmann wrote:
> Changed re.search to re.match because .search scan through the whole string
> looking for the regex. So, for example "asodijfosidwww.google.comaosdfoisad"
> with .search will be treated as a whole URL.
> 
> With .match the complete word will be treated as an URL if the whole word
> matches with the regular expression.
> 
> Signed-off-by: Manuel Kaufmann <humitos at gmail.com>

Yeah, it was missed.

-- 
Aleksey


More information about the Sugar-devel mailing list