From b3e8fa2393e7bd50356844ce064f040a5b0553cc Mon Sep 17 00:00:00 2001 From: garry-ut99 <72945564+garry-ut99@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:38:35 +0000 Subject: [PATCH] Safer examples (previous commit) --- Static-filter-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index 08ef1ac..446353e 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -611,8 +611,8 @@ The `ipaddress` value is not validated, so you can enter anything. Only one ipv4 Exclusions `~` and `|` operators are not supported, e.g. `ipaddress=~192.168.1.1` or `ipaddress=192.168.1.1|192.168.8.4`, however as partial solution a regex can be used, examples: ```adb -*$ipaddress=/^(?!95\.216\.7\.22|9\.9\.9\.9).*$/ -*$ipaddress=/^((?!95\.216\.7\.22|9\.9\.9\.9).)*$/ +(...) ipaddress=/^(?!95\.216\.7\.22|9\.9\.9\.9).*$/ +(...) ipaddress=/^((?!95\.216\.7\.22|9\.9\.9\.9).)*$/ ``` but the above solution is not perfect: