-
Notifications
You must be signed in to change notification settings - Fork 12.8k
RegExpExecArray is missing a type definition for the groups property #30921
New issue
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
Comments
Duplicate of #29465. edit: .. or not? The other issue is about |
@MartinJohns looks like Trying the stackblitz from that issue with this code still shows this.
// GF116 [GeForce GTX 550 Ti] --> GeForce GTX 550 Ti
const regex = new RegExp(/.+\[(?<gpuname>.+)\]/);
regex.exec('GF116 [GeForce GTX 550 Ti]').groups.gpuname; |
The issue explicitly says that the Stackblitz website is using outdated versions... When you set your |
Same on 3.9.3 for me. For now, i'm doing something like this:
|
This is still an issue. Can it please be reopened? |
Still an issue, |
@RyanCavanaugh please reopen this. |
TypeScript Version: I'm using the ts checker with javascript in VS Code so I'm not 100% sure on the version I'm using.
Search Terms:
RegExpExecArray
RegExpExecArray groups
exec groups
regex groups
Code
Expected behavior:
No error.
Actual behavior:
Property 'groups' does not exist on type 'RegExpExecArray'.ts(2339)
Related Issues:
#17094
The text was updated successfully, but these errors were encountered: