diff --git a/RegExpSupport/resources/inspectionDescriptions/RegExpRedundantEscape.html b/RegExpSupport/resources/inspectionDescriptions/RegExpRedundantEscape.html index 4087d9ce428f..edba6fd7c4aa 100644 --- a/RegExpSupport/resources/inspectionDescriptions/RegExpRedundantEscape.html +++ b/RegExpSupport/resources/inspectionDescriptions/RegExpRedundantEscape.html @@ -2,6 +2,11 @@
Reports character escapes that are replaceable with the unescaped character without a change in meaning. Note that inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. +
+This inspection doesn't warn on opening curly braces ({) outside of character classes ([]).
+Removing the escape before an opening curly brace can cause confusion,
+even though this is allowed in e.g. the Javascript and Python regex dialects.
+It would also make the regex pattern less portable, because many other dialects don't allow unescaped curly braces as characters.
Example:
\-\;[\.]
@@ -11,6 +16,10 @@ Note that inside the square brackets of a character class, many escapes are unne
-;[.]
++Use the Ignore escaped closing brackets '}' and ']' option +to specify if '\}' and '\]' should be reported when they are not inside a character class +and they are allowed to be unescaped by the RegExp dialect.
New in 2017.3