Closed Bug 69989 Opened 25 years ago Closed 25 years ago

javascript search function does not support regular expressions.

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: 1212mozilla, Assigned: rogerl)

Details

(Keywords: testcase)

Attachments

(1 file)

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.
Keywords: 4xp, testcase
OS: Linux → All
Bug confirmed in windows (build 2001021304). Changing OS to all.
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
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
The fix for bug 67773 did not fix this bug. The testcase still fails. (Build ID: 2001030813 Linux)
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
I just can't read what the alert box actually says. Please ignore me. It does work.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → WORKSFORME
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.

Attachment

General

Created:
Updated:
Size: