Closed
Bug 506052
Opened 15 years ago
Closed 6 years ago
Case insensitive Regular Expression match doesn't work for non-latin characters
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: cpeyer, Unassigned)
References
Details
Attachments
(1 file)
442 bytes,
text/html
|
Details |
Steps to reproduce: Try the following: trace("Č".match(/č/i)); trace("Ą".match(/ą/i)); trace("Ä".match(/ä/i)); trace("Å".match(/å/i)); Actual Results: All of the above return null. Expected Results: They should return matches (1-element arrays) just like the following returns ["A"]: "A".match(/a/i)) The same problem applies to replace. Workaround (if any): You can use toUpperCase for both strings: s1.toUpperCase().match(new RegExp(s2.toUpperCase(), "")) the problem is however that the returned result will differ from the original (will by upper-case). Interestingly, even toUpperCase() doesn't work at all for "å". Maybe it shouldn't - I don't know Finnish language and the rules that apply to it.
Reporter | ||
Comment 1•15 years ago
|
||
Transferred from jira: https://bugs.adobe.com/jira/browse/ASC-3252 Transferred Comments: Jakub Galas - [03/21/08 05:20 AM ] All of the above (including å) work fine in JavaScript (tested with Firefox and IE). Chris Peyer - [04/14/08 09:57 AM ] Also getting null w/ spidermonkey. Not sure of what proper behaviour should be. Jakub Galas - [04/15/08 03:19 AM ] The attached file is a test for both issues this one and http://bugs.adobe.com/jira/browse/ASC-3253 It returns expected results in all three major browsers (FF, Opera, IE). Trevor Baker - [01/27/09 02:51 PM ] back to internal review for reprioritization
Flags: in-testsuite?
Flags: flashplayer-qrb?
Updated•15 years ago
|
Flags: flashplayer-triage+
Depends on: AS3_Builtins
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P2
Target Milestone: --- → Future
Blocks: AS3_Builtins
No longer depends on: AS3_Builtins
Updated•15 years ago
|
Blocks: regex-upgrade
Priority: P2 → --
Comment 2•6 years ago
|
||
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Comment 3•6 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in
before you can comment on or make changes to this bug.
Description
•