Closed
Bug 69989
Opened 25 years ago
Closed 25 years ago
javascript search function does not support regular expressions.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: 1212mozilla, Assigned: rogerl)
Details
(Keywords: testcase)
Attachments
(1 file)
1.03 KB,
text/html
|
Details |
The url I noticed this with is in a password protected management utility. I'll
attach a simplified test case. Both IE and Netscape 4 deal fine with the test
case. Mozilla does not.
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Updated•25 years ago
|
Reporter | ||
Updated•25 years ago
|
OS: Linux → All
Reporter | ||
Comment 2•25 years ago
|
||
Bug confirmed in windows (build 2001021304). Changing OS to all.
![]() |
||
Comment 3•25 years ago
|
||
The issue here is the (foo)+$ construct. Note that a domain name like foo.bar
is correctly identified as valid.
There is a fix for this problem currently being reviewed.
*** This bug has been marked as a duplicate of 67773 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Comment 4•25 years ago
|
||
Verified Duplicate. Stephen's test has been added to the existing
regression test for bug 67773:
js/tests/ecma_3/RegExp/regress-67773.js
His test has been added as follows:
pattern = /^[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)+$/;
string = 'some.host.tld';
actualmatch = string.match(pattern);
expectedmatch = Array(string, '.tld', '.');
The expectedmatch array = what you get in Perl, and in NN4.7 ...
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•25 years ago
|
||
The fix for bug 67773 did not fix this bug.
The testcase still fails. (Build ID: 2001030813 Linux)
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
Reporter | ||
Comment 6•25 years ago
|
||
I just can't read what the alert box actually says. Please ignore me. It does work.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → WORKSFORME
Comment 7•25 years ago
|
||
Marking Verified Fixed.
Stephen's HTML testcase passes using Mozilla nightly 2001031204 WinNT.
Also, testcase js/tests/ecma_3/RegExp/regress-67773.js
passes in the standalone JS shell on Linux and WinNT -
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•