Skip to content
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

Replace match-index with String.prototype.matchAll #55

Open
azu opened this issue Jul 17, 2023 · 1 comment
Open

Replace match-index with String.prototype.matchAll #55

azu opened this issue Jul 17, 2023 · 1 comment
Labels
good first issue Good for newcomers PR welcome Status: Proposal Request for comments

Comments

@azu
Copy link
Member

azu commented Jul 17, 2023

match-indexString.prototype.matchAll()RegExp Match Indicesに置き換えられるはずです(String.prototype.matchAll()以前に作られたライブラリなので)

置き換えることで依存が減らせます

@azu azu added Status: Proposal Request for comments PR welcome labels Jul 17, 2023
@azu
Copy link
Member Author

azu commented Jul 17, 2023

String.prototype.matchAll()はNode.js 12+
RegExp Match IndicesはNode.js 14+なので、サポートが切れるはず

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers PR welcome Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

1 participant