Bugs item #614002, was opened at 2002-09-24 12:27
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=432066&aid=614002&group_id=42081

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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=432066&aid=614002&group_id=42081


-------------------------------------------------------
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