We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the groups property of the regex matches is undefined.
groups
const string = 'Favorite GitHub repos: tc39/ecma262 v8/v8.dev'; const regex = /\b(?<owner>[a-z0-9]+)\/(?<repo>[a-z0-9\.]+)\b/g; for (const match of string.matchAll(regex)) { console.log(`${match[0]} at ${match.index} with '${match.input}'`); console.log(`→ owner: ${match.groups.owner}`); console.log(`→ repo: ${match.groups.repo}`); }
error:
TypeError: Cannot read property 'owner' of undefined
example from: https://v8.dev/features/string-matchall
The text was updated successfully, but these errors were encountered:
It's a duplicate of #521.
Sorry, something went wrong.
No branches or pull requests
the
groups
property of the regex matches is undefined.error:
example from: https://v8.dev/features/string-matchall
The text was updated successfully, but these errors were encountered: