Hello,
Thx a lot, this works perfectly now....the strange thing is that my previous
test worked well before yesterday...

Johnny Baillargeaux

2009/1/16 satyr <[email protected]>

>
> RegExp#exec returns null when it doesn't match. You should do:
>
>  if(lst_occ){.....}
>
> insted of using length in the first place.
>
> On Jan 16, 12:41 am, "Johnny Baillargeaux" <[email protected]>
> wrote:
> > Hi,
> >
> > Since today, without any changes into my code, this piece of code doesn't
> > work anymore :
> >
> > *          var reg = /<url[^>]*>.*?<\/url>/g;
> >           var lst_occ = reg.exec(tts);
> >
> >           if (lst_occ.length > 0) {.....}.*
> >
> > I've added a trace into the log via "cmdUtils.log" and the script is lost
> > between "var lst_occ = reg.exec(tts);" and the test, meaning that probaby
> > there is an inconsisteny with "lst_occ.length".
> >
> > Everything was ok yesterday and before....
> >
> > My configuration is based on WIN XP, Firefox/3.0.5 and Ubiquity/0.1.5
> >
> > Do you have any ideas ?
> >
> > Thx a lot,
> > Johnny Baillargeaux
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to