Closed Bug 507603 Opened 15 years ago Closed 6 years ago

regexp /[^,]*/ returns inconsistent result

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: dschaffe, Unassigned)

References

Details

Steps to reproduce:
1. var s:String = "test,test,test";
2. var regex:RegExp = /[^,]*/g;
3. var a:Array = s.match(regex);
 
 Actual Results:
 The only value in array 'a' is 'test'.
 
 Expected Results:
 The array 'a' should have 3 entries of 'test'.
 
 Workaround (if any):

var s:String = "test,test,test";
var a:Array = s.split(","); 


python and mozilla javascript return [test,test,test] tamarin returns [test]

moved from community issue http://bugs.adobe.com/jira/browse/FP-2228
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Flags: in-testsuite?
Blocks: AS3_Builtins
Priority: -- → P3
Target Milestone: --- → flash10.1
Assigned to Szeged.
Assignee: nobody → akiss
Status: NEW → ASSIGNED
Flags: flashplayer-qrb? → flashplayer-qrb+
Assignee: akiss → stejohns
Any fix for this bug will likely need version-checking for backwards compatibility.
Flags: flashplayer-needsversioning+
Target Milestone: flash10.1 → Future
Priority: P3 → --
Depends on: 535770
Assignee: stejohns → nobody
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.