aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-12-18 15:51:14 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-12-18 15:51:14 -0600
commitf519eb8473bf276ef53503a4454afcd28c09fcce (patch)
treeafda1273704156f51370c43fe67b8a98fdfce82d /src
parent57c10999226805dab67243e74502e9fc6b2e92fa (diff)
downloadslskd-f519eb8473bf276ef53503a4454afcd28c09fcce.tar.gz
add option for case sensitive regular expressions
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 814b9b90..e23fd640 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -381,6 +381,15 @@ namespace slskd
[Description("use volatile data storage (all data will be lost at shutdown)")]
[RequiresRestart]
public bool Volatile { get; init; } = false;
+
+ /// <summary>
+ /// Gets a value indicating whether user-defined regular expressions are case sensitive.
+ /// </summary>
+ [Argument(default, "case-sensitive-regex")]
+ [EnvironmentVariable("CASE_SENSITIVE_REGEX")]
+ [Description("user-defined regular expressions are case sensitive")]
+ [RequiresRestart]
+ public bool CaseSensitiveRegEx { get; init; } = false;
}
/// <summary>