regexp /[^,]*/ returns inconsistent result

ASSIGNED
Unassigned

Status

Tamarin
Virtual Machine
ASSIGNED
9 years ago
6 years ago

People

(Reporter: Dan Schaffer, Unassigned)

Tracking

(Blocks: 2 bugs)

unspecified
Future
x86
Mac OS X
Dependency tree / graph
Bug Flags:
in-testsuite ?
flashplayer-qrb +
flashplayer-triage +
flashplayer-needsversioning +

Details

(Reporter)

Description

9 years ago
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+
(Reporter)

Updated

9 years ago
Flags: flashplayer-qrb?
(Reporter)

Updated

9 years ago
Flags: in-testsuite?

Updated

8 years ago
Blocks: 479769
Priority: -- → P3
Target Milestone: --- → flash10.1

Comment 1

8 years ago
Assigned to Szeged.
Assignee: nobody → akiss
Status: NEW → ASSIGNED
Flags: flashplayer-qrb? → flashplayer-qrb+

Updated

8 years ago
Assignee: akiss → stejohns

Comment 2

8 years ago
Any fix for this bug will likely need version-checking for backwards compatibility.

Updated

8 years ago
Flags: flashplayer-needsversioning+

Updated

8 years ago
Target Milestone: flash10.1 → Future

Updated

8 years ago
Priority: P3 → --

Updated

8 years ago
Depends on: 535770

Updated

6 years ago
Assignee: stejohns → nobody

Updated

6 years ago
Blocks: 520442
You need to log in before you can comment on or make changes to this bug.