From 44fc80499174026dc19e9e7be8864646be4ad6c6 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 12 Mar 2022 11:20:43 +0100 Subject: [PATCH] Minor updates to filters form text --- changedetectionio/forms.py | 4 ++-- changedetectionio/templates/edit.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index b2b53382..facfc7bd 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -214,7 +214,7 @@ class ValidateListRegex(object): message = field.gettext('RegEx \'%s\' is not a valid regular expression.') raise ValidationError(message % (line)) -class ValidateCSSJSONXPATHInput(object): +class ValidateCSSJSONXPathInput(object): """ Filter validation @todo CSS validator ;) @@ -282,7 +282,7 @@ class watchForm(commonSettingsForm): minutes_between_check = html5.IntegerField('Maximum time in minutes until recheck', [validators.Optional(), validators.NumberRange(min=1)]) - css_filter = StringField('CSS/JSON/XPATH Filter', [ValidateCSSJSONXPATHInput()]) + css_filter = StringField('CSS/JSON/XPath Filter', [ValidateCSSJSONXPathInput()]) title = StringField('Title') ignore_text = StringListField('Ignore Text', [ValidateListRegex()]) diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html index e6df51e8..6b0be692 100644 --- a/changedetectionio/templates/edit.html +++ b/changedetectionio/templates/edit.html @@ -115,7 +115,7 @@ User-Agent: wonderbra 1.0") }}
  • CSS - Limit text to this CSS rule, only text matching this CSS rule is included.
  • JSON - Limit text to this JSON rule, using JSONPath, prefix with "json:", test your JSONPath here
  • -
  • XPATH - Limit text to this XPath rule, simply start with a forward-slash, example //*[contains(@class, 'sametext')], XPath - Limit text to this XPath rule, simply start with a forward-slash, example //*[contains(@class, 'sametext')], test your XPath here
  • Please be sure that you thoroughly understand how to write CSS or JSONPath, XPath selector rules before filing an issue on GitHub!