Flaw in javascript regular expressions parser.

RESOLVED INVALID

Status

()

P3
normal
RESOLVED INVALID
19 years ago
17 years ago

People

(Reporter: moscoop, Assigned: rogerl)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
alert(/^[^0]/.test(""));
alert(/[^0]/.test(""));

Those 2 lines of JavaScript code should produce 2 dialog boxes that both say
"false", but the first line erroneously produces "true". 
There is a bug in the regular expression processing part of the implimentation
of JavaScript in Netscape 4.72.
I've tried this on HP-UX & on WinNT versions of Netscape with the exact
same result.
(Assignee)

Comment 1

19 years ago
Bugs in 4.72 need to go via 

http://help.netscape.com/forms/bug-client.html 

(I forwarded this one already)

for what it's worth - this bug is fixed in Mozilla.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.