From 297a1c7fa53910e38c041ed2c430ff27b0509213 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Fri, 25 Jan 2019 18:40:42 +0300 Subject: [PATCH] Added regex example to the "Custom filtering rules" settings Closes #559 --- client/src/__locales/en.json | 1 + client/src/components/Filters/UserRules.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index 2f83394d..10471501 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -115,6 +115,7 @@ "example_comment": "! Here goes a comment", "example_comment_meaning": "just a comment", "example_comment_hash": "# Also a comment", + "example_regex_meaning": "block access to the domains matching the specified regular expression", "example_upstream_regular": "regular DNS (over UDP)", "example_upstream_dot": "encrypted DNS-over-TLS<\/a>", "example_upstream_doh": "encrypted DNS-over-HTTPS<\/a>", diff --git a/client/src/components/Filters/UserRules.js b/client/src/components/Filters/UserRules.js index f03b5380..9aae0281 100644 --- a/client/src/components/Filters/UserRules.js +++ b/client/src/components/Filters/UserRules.js @@ -52,6 +52,9 @@ class UserRules extends Component {
  • { t('example_comment_hash') } - { t('example_comment_meaning') }
  • +
  • + /REGEX/ - { t('example_regex_meaning') } +