mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Merge branch 'master' of https://github.com/JustArchi/ArchiSteamFarm
This commit is contained in:
@@ -555,7 +555,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
} else if (botName.StartsWith("r!", StringComparison.OrdinalIgnoreCase)) {
|
||||
string botPattern = botName.Substring(2);
|
||||
IEnumerable<Bot> regexMatches = Bots.Where(kvp => Regex.Match(kvp.Key, botPattern, RegexOptions.CultureInvariant).Success).Select(kvp => kvp.Value);
|
||||
IEnumerable<Bot> regexMatches = Bots.Where(kvp => Regex.IsMatch(kvp.Key, botPattern, RegexOptions.CultureInvariant)).Select(kvp => kvp.Value);
|
||||
result.UnionWith(regexMatches);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user