Closed Bug 445815 Opened 12 years ago Closed 1 year ago

ActionScript 3 RegExp bug with look behind behavior

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
All
defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: cpeyer, Unassigned)

References

Details

Steps to reproduce:
1. Create new regexp expression: var testExpr:RegExp = /(?<=/\*(?:[^*]|\*[^*/])*)(@\w*)/gm
2. Make a test string which looks like this: 
/**
 * Blah
 * 
 * @author1 blahBlah
 */
 * @author2 blahBlah
3. run code testExpr.exec(testString);

 Actual Results:
Look behind expression works alright if used alone but doesnt seem to function in case if it's used as look behind.
 
 Expected Results:
Expression should select all @\w documentation comment tags which are located inside unclosed block comments.
In above example if should select @author1 and leave ignored @author2.
Also that is exactly what happens in other regexp environments that support variable length positive look behind blocks I've tested that expression in.
 
 Workaround (if any):
Transferred from: https://bugs.adobe.com/jira/browse/ASC-3399
Flags: in-testsuite?
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Assignee: nobody → tierney
Status: NEW → ASSIGNED
Flags: flashplayer-qrb? → flashplayer-qrb+
Target Milestone: --- → flash10.x
Blocks: AS3_Builtins
Assignee: tierney → tharwood
Priority: -- → P4
Any fix for this would likely have to be version-checked for backwards compatibility.
Flags: flashplayer-needsversioning+
Target Milestone: flash10.1 → flash10.2
Depends on: 535770
Assignee: tharwood → nobody
Severity: major → normal
Flags: flashplayer-injection-
Flags: flashplayer-bug+
Priority: P4 → --
Target Milestone: Q3 11 - Serrano → Future
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.