[advancedcontentfilter] Update documentation about backslashes

pull/586/head
Hypolite Petovan 2018-04-18 23:49:15 -04:00
parent 27c39e36a9
commit 87a392a3c7
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@ A post will be collapsed if at least one rule matches, but all matching rule nam
- **booleans** - `true` and `false`.
- **null** - `null`.
A backslash (``\``) must be escaped by 4 backslashes (``\\\\``) in a string and 8 backslashes (``\\\\\\\\``) in a regex::
A backslash (``\``) must be escaped by 2 backslashes (``\\``) in a string and 4 backslashes (``\\\\``) in a regex::
`"a\\\\b" matches "/^a\\\\\\\\b$/"`
`"a\\b" matches "/^a\\\\b$/"`
Control characters (e.g. ``\n``) in expressions are replaced with whitespace. To avoid this, escape the sequence with a single backslash (e.g. ``\\n``).