Skip to content

Conversation

aloisklink
Copy link
Contributor

The hasIndices or /d regex flag is part of ES2022.

The d flag indicates that the result of a regular expression match should contain the start and end indices of the substrings of each capture group. It does not change the regex's interpretation or matching behavior in any way, but only provides additional information in the matching result.

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/hasIndices

@DmitrySoshnikov
Copy link
Owner

This looks good, thanks for the contribution!

@DmitrySoshnikov DmitrySoshnikov merged commit 1d07a5d into DmitrySoshnikov:master Aug 13, 2024
@aloisklink aloisklink deleted the fix/add-support-for-hasIndices-d-flag branch August 14, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants