Rob,

What does this page say when you bring it up in IE?

http://sourceforge.net/tracker/download.php?group_id=42081&atid=432066&file_id=3
1731&aid=614002

(watch for wrapping)

Glenn

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 3:40 PM
Subject: [DQSD-Devel] [ dqsd-Bugs-614002 ] Javascript errors from RegExp's


> Bugs item #614002, was opened at 2002-09-24 14:27
> You can respond by visiting:
>
https://sourceforge.net/tracker/?func=detail&atid=432066&aid=614002&group_id=420
81
>
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Nobody/Anonymous (nobody)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Javascript errors from RegExp's
>
> Initial Comment:
> My environment is Windows XP, SP1 with IE 6.0.2800...
>
> I installed version 3.1.3.0 and was unable to perform any
> searches.  I received Javascript errors when starting the
> toolbar, as well as when attempting searches.  While
> debugging, I discovered that the errors were occurring
> with some of the regular expressions that are in the
> code.  The problematic expressions contained '?'s as
> the first character of an atom, or assertion.  This was
> causing IE script errors, because there was no
> character preceeding the '?' to apply the quantitative
> match to.  Here are the changes I made in order to get
> up and running:
>
> file:  defer_tools.js
> line: 154
> changed to:
>   var re_switch = /\/(([-.\w]+)(:?(\S*)))\s*/;
>
>
> file:  search.htm
> line: 372 - 374
> changed to:
>
>   var prot = new RegExp("^\s*(((http\[s?\]|ftp)://)([\-a-z0-
> 9]+\.)*([\-a-z0-9])+)|[a-z]:($|\\)" +
>                         "|\\\\[\w]+[\w\$]*($|\\($|[\w\$\&]+
> ($|\\)))", "i");
>
>
> file:  search.htm
> line: 382 - 383
> changed to:
>   var re = new RegExp("^\s*((www|ftp)\.([\-a-z0-9]+\.)+
> [\-a-z0-9]+(/\S*)?" +
>                       "|([\-a-z0-9]+\.)+
> (com|net|org|edu|gov|mil|int|arpa|info|biz|name|museum|co
> op|aero|pro|[a-z]{2})(/\S*)?)$", "i");
>
> I didn't see any posts that indicated others were having
> the exact same problem, so I thought I'd submit the
> changes that worked for me just in case.
>
> Thanks,
> -Rob Sioss
> rsioss @ yahoo dot com
>
>
> ----------------------------------------------------------------------
>
> >Comment By: Glenn Carr (glenncarr)
> Date: 2002-09-24 15:40
>
> Message:
> Logged In: YES
> user_id=18127
>
> This confuses me because the current regex is valid.  The
> question mark just indicates an non-capturing match.  From
> the JScript regular express help:
>
> http://smlnk.com/?PQOMCZQ4
>
> Check the documentation for (?:pattern).  The only thing I can
> think is that for some reason the script engine is out-of-date.
> What does the attached .htm file say when you click on it?
>
>
> ----------------------------------------------------------------------
>
> Comment By: Nobody/Anonymous (nobody)
> Date: 2002-09-24 15:11
>
> Message:
> Logged In: NO
>
> Change to file: search.htm on lines 372 - 274 should read:
>
>   var prot = new RegExp("^\s*(((http[s]?|ftp)://)([\-a-z0-9]+\.)*
> ([\-a-z0-9])+)|[a-z]:($|\\)" +
>                         "|\\\\[\w]+[\w\$]*($|\\($|[\w\$\&]+
> ($|\\)))", "i");
>
>
> The original post was incorrect.  I was thinking I needed to
> escape the brackets in the RegExp string... and I also
> misplaced the '?' within the http[s] match.  Sorry for the
> mistakes!!  This corrected comment has been tested and
> works for me.
>
> Sincerely,
> Rob Sioss
> rsioss @ yahoo dot com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to