Minor updates to filters form text

This commit is contained in:
dgtlmoon
2022-03-12 11:20:43 +01:00
committed by GitHub
parent b72c9eaf62
commit 44fc804991
2 changed files with 3 additions and 3 deletions

View File

@@ -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()])