Skip to content

Commit

Permalink
Removed all references to RegexCompileFlags.JAVASCRIPT_COMPAT due t…
Browse files Browse the repository at this point in the history
…o deprecation
  • Loading branch information
ErikReider committed Sep 22, 2022
1 parent 7a82c82 commit 95039d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/configModel/configModel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -66,38 +66,38 @@ 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;
}
if (summary != null) {
if (param.summary == null) return false;
bool result = Regex.match_simple (
summary, param.summary,
RegexCompileFlags.JAVASCRIPT_COMPAT,
0,
RegexMatchFlags.NOTEMPTY);
if (!result) return false;
}
if (body != null) {
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;
}
if (category != null) {
if (param.category == null) return false;
bool result = Regex.match_simple (
category, param.category,
RegexCompileFlags.JAVASCRIPT_COMPAT,
0,
RegexMatchFlags.NOTEMPTY);
if (!result) return false;
}
Expand Down

0 comments on commit 95039d9

Please sign in to comment.