From 87a392a3c793b1b9b781939b46cf4189f15fb881 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 18 Apr 2018 23:49:15 -0400 Subject: [PATCH] [advancedcontentfilter] Update documentation about backslashes --- advancedcontentfilter/doc/advancedcontentfilter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advancedcontentfilter/doc/advancedcontentfilter.md b/advancedcontentfilter/doc/advancedcontentfilter.md index f9947b8f..41320fa3 100644 --- a/advancedcontentfilter/doc/advancedcontentfilter.md +++ b/advancedcontentfilter/doc/advancedcontentfilter.md @@ -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``). -- 2.39.5