From 95039d90f4c27ef5773ce78726d7b75cb93ff670 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Thu, 22 Sep 2022 22:53:36 +0200 Subject: [PATCH] Removed all references to `RegexCompileFlags.JAVASCRIPT_COMPAT` due to deprecation --- src/configModel/configModel.vala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/configModel/configModel.vala b/src/configModel/configModel.vala index 0d52149d..9e1b7a77 100644 --- a/src/configModel/configModel.vala +++ b/src/configModel/configModel.vala @@ -66,7 +66,7 @@ namespace SwayNotificationCenter { if (param.app_name == null) return false; bool result = Regex.match_simple ( app_name, param.app_name, - RegexCompileFlags.JAVASCRIPT_COMPAT, + 0, RegexMatchFlags.NOTEMPTY); if (!result) return false; } @@ -74,7 +74,7 @@ namespace SwayNotificationCenter { if (param.summary == null) return false; bool result = Regex.match_simple ( summary, param.summary, - RegexCompileFlags.JAVASCRIPT_COMPAT, + 0, RegexMatchFlags.NOTEMPTY); if (!result) return false; } @@ -82,14 +82,14 @@ namespace SwayNotificationCenter { if (param.body == null) return false; bool result = Regex.match_simple ( body, param.body, - RegexCompileFlags.JAVASCRIPT_COMPAT, + 0, RegexMatchFlags.NOTEMPTY); if (!result) return false; } if (urgency != null) { bool result = Regex.match_simple ( urgency, param.urgency.to_string (), - RegexCompileFlags.JAVASCRIPT_COMPAT, + 0, RegexMatchFlags.NOTEMPTY); if (!result) return false; } @@ -97,7 +97,7 @@ namespace SwayNotificationCenter { if (param.category == null) return false; bool result = Regex.match_simple ( category, param.category, - RegexCompileFlags.JAVASCRIPT_COMPAT, + 0, RegexMatchFlags.NOTEMPTY); if (!result) return false; }