Closed
Bug 505193
Opened 16 years ago
Closed 16 years ago
RegExp locale bug using i key.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 502789
People
(Reporter: ivanshirokoff, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
I'm suffering from a bug with RegExp. It doesn't match right when using i key in russian loacle. So "МОЗИЛЛА".match(/мозилла/i) returns false =(
PS: Hope you can see russian characters =)
In 3.0.11 everything is just fine.
Reproducible: Always
Steps to Reproduce:
1. (/мозилла/i).test("МОЗИЛЛА");
Actual Results:
false
Expected Results:
true
But the opposite situation works ok
(/МОЗИЛЛА/i).test("мозилла");
Comment 2•16 years ago
|
||
javascript:alert((/мозилла/i).test("МОЗИЛЛА"))
gives true as expected on current trunk and on 3.5.1 with javascript.options.jit.content set false
That may make it a duplicate of bug 502789
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2a1pre) Gecko/20090719 Minefield/3.6a1pre ID:20090719043021
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•