Resolve new eslint-plugin-regexp violation regexp/no-contradiction-with-assertion.

This commit is contained in:
David Anson 2023-10-16 20:06:30 -07:00
parent a5fb19ba9e
commit 0afedaebf4
3 changed files with 3 additions and 3 deletions

View file

@ -518,7 +518,7 @@ specify a custom `RegExp` or use the value `null` to disable the feature.
The default value:
```javascript
/((^---\s*$[\s\S]*?^---\s*)|(^\+\+\+\s*$[\s\S]*?^(\+\+\+|\.\.\.)\s*)|(^\{\s*$[\s\S]*?^\}\s*))(\r\n|\r|\n|$)/m
/((^---\s*$[\s\S]+?^---\s*)|(^\+\+\+\s*$[\s\S]+?^(\+\+\+|\.\.\.)\s*)|(^\{\s*$[\s\S]+?^\}\s*))(\r\n|\r|\n|$)/m
```
Ignores [YAML](https://en.wikipedia.org/wiki/YAML),