jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Regex bug

Open Georgezxh opened this issue 2 years ago • 0 comments

Description

Hi. The code below does not have the same output as other engines (e.g., V8 in Google Chrome,SpiderMonkey in Firefox,chakra in Edge,quickjs,jerryscript).

JerryScript revision

3.0.0

Build platform

ubuntu20.04

Test case

var regex=/(?:(\s)((?:\w*\1)){1,8}){2,5}/ regex.exec(" A B C D E F G H I ")

Output

A B C D E F G H I , ,I

Expected behavior

A B C D E F G H , ,

Georgezxh avatar Jan 19 '23 13:01 Georgezxh