nightmare icon indicating copy to clipboard operation
nightmare copied to clipboard

JavaScript Lookbehind Assertions Not Yet Supported

Open 1toddlewis opened this issue 5 years ago • 0 comments

SyntaxError: Invalid regular expression: /(?<=data-userid=")\d+(?=")/: Invalid group

They're part of the current JS spec and supported in both Chrome and Node: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Browser_compatibility

I may have to look into Puppeteer until they're supported in Nightmare. Consider this a feature request!

1toddlewis avatar Nov 29 '19 16:11 1toddlewis