💼 This rule is enabled in the following configs: 🟢 flat/recommended
, 🔵 recommended
.
🔧 This rule is automatically fixable by the --fix
CLI option.
📖 Rule Details enforce match any character style
This rule enforces the regular expression notation to match any character.
e.g. [\s\S]
, [^]
, /./s
(dotAll) and more.
{
"regexp/match-any": ["error", {
"allows": ["[\\s\\S]", "dotAll"]
}]
}
"allows"
... An array of notations that any characters that are allowed."[\\s\\S]"
, "[\\S\\s]"
, "[^]"
and "dotAll"
can be set.{ "allows": ["[^]"] }
🚀 Version
This rule was introduced in eslint-plugin-regexp v0.1.0
🔍 Implementation RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4