From aaa038f0825668988aa653eafbee9a6765501705 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 17 Mar 2025 18:28:53 +0100 Subject: [PATCH] Move operation --- changedetectionio/conditions/__init__.py | 3 --- changedetectionio/conditions/default_plugin.py | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/changedetectionio/conditions/__init__.py b/changedetectionio/conditions/__init__.py index 44ebd002..959f5abd 100644 --- a/changedetectionio/conditions/__init__.py +++ b/changedetectionio/conditions/__init__.py @@ -17,9 +17,6 @@ operator_choices = [ ("!=", "Not Equals"), ("in", "Contains"), ("!in", "Does Not Contain"), - ("contains_regex", "Text Matches Regex"), - ("!contains_regex", "Text Does NOT Match Regex"), -# ("changed > minutes", "Changed more than X minutes ago"), ] # Fields available in the rules diff --git a/changedetectionio/conditions/default_plugin.py b/changedetectionio/conditions/default_plugin.py index 58346b3d..ea714ada 100644 --- a/changedetectionio/conditions/default_plugin.py +++ b/changedetectionio/conditions/default_plugin.py @@ -47,6 +47,8 @@ def register_operator_choices(): ("ends_with", "Text Ends With"), ("length_min", "Length minimum"), ("length_max", "Length maximum"), + ("contains_regex", "Text Matches Regex"), + ("!contains_regex", "Text Does NOT Match Regex"), ] @hookimpl