4 messages in com.googlegroups.social-graph-apiRe: regex error in example apps
FromSent OnAttachments
Wojciech Polak05 Feb 2008 07:42 
Arne Roomann-Kurrik05 Feb 2008 10:34 
artemy tregoubenko06 Feb 2008 01:35 
Arne Roomann-Kurrik06 Feb 2008 10:54 
Subject:Re: regex error in example apps
From:Arne Roomann-Kurrik (kur@google.com)
Date:02/05/2008 10:34:51 AM
List:com.googlegroups.social-graph-api

Hi Wojciech,

Thanks for reporting this problem. I've updated the samples, so they should be working for you now.

~Arne

On Feb 5, 2008 7:42 AM, Wojciech Polak <wojc@gmail.com> wrote:

Hello,

There is an error in sample apps in the following regular expression: urlRegex = new RegExp("([^:]*):[/]*[www\.]*([^/]+)([^\?]*)(.*)");

It should be: urlRegex = new RegExp("([^:]*):[/]*(www\.)*([^/]+)([^\?]*)(.*)");

(and urlbits[2] => urlbits[3], urlbits[3] => urlbits[4] respectively)

Otherwise, a host name beginning with "w" is truncated, for instance my domain: wojciechpolak.org

Regards, Wojciech