Closed
Bug 693599
Opened 13 years ago
Closed 13 years ago
Regular expression not returning correct result
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 692441
People
(Reporter: eviljeff, Unassigned)
Details
The following regexp is returning a different result than it did in Firefox3.6 (and 6, apparently):
var myregexp = /((UID (\w+)|RFC822.SIZE (\w+)|FLAGS \((.*?)\))[\s)]+){3}/g;
var str = "* 1 FETCH (UID 9 RFC822.SIZE 724 FLAGS (\Seen))";
alert(myregexp.exec(str));
In Firefox 3.6 the alert string is:
UID 9 RFC822.SIZE 724 FLAGS (Seen)),FLAGS (Seen)),FLAGS (Seen),9,724,Seen
and in Firefox 7,8,9,10:
UID 9 RFC822.SIZE 724 FLAGS (Seen)),FLAGS (Seen)),FLAGS (Seen),,,Seen
Reporter | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•