Commits
Click on a commit to change the comparison rangefix(linter/no-control-regex): allow capture group references (#6529)
Closes #6525.
Allows `\1`, `\2`, etc. when referencing a capturing group.
Examples of now-allowed patterns:
```js
// both of these have a capture group with an index of 1
const r = /([a-z]+)\1/;
const r = /\1([a-z]+)/;
```
Examples of still-banned patterns:
```js
/([a-z])\0/; //out of range: capture groups are 1-indexed
/([a-z])\2/; // there's only one capture group here
```