From 3261d613d0154f4973a719269f7161f5acfe9120 Mon Sep 17 00:00:00 2001 From: West14 <30056636+West14@users.noreply.github.com> Date: Mon, 3 Jan 2022 15:17:11 +0200 Subject: [PATCH] Yet another attempt to fix case insensitive matching. --- modules/Entertainment/Handler/Fun/Bayan.cs | 2 +- modules/Entertainment/Handler/Fun/Python.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Entertainment/Handler/Fun/Bayan.cs b/modules/Entertainment/Handler/Fun/Bayan.cs index b39d3eb..50ed3dc 100644 --- a/modules/Entertainment/Handler/Fun/Bayan.cs +++ b/modules/Entertainment/Handler/Fun/Bayan.cs @@ -14,7 +14,7 @@ namespace West.Entertainment.Handler.Fun public Bayan(CoreContext db) : base(db) { } protected override Regex AnimationMatch - => new("^баян$", RegexOptions.IgnoreCase); + => new("^баян$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); protected override string GetAnimationName() => "bayan"; diff --git a/modules/Entertainment/Handler/Fun/Python.cs b/modules/Entertainment/Handler/Fun/Python.cs index 831d111..b095066 100644 --- a/modules/Entertainment/Handler/Fun/Python.cs +++ b/modules/Entertainment/Handler/Fun/Python.cs @@ -11,7 +11,8 @@ namespace West.Entertainment.Handler.Fun public class Python : AbstractAnimationReply { protected override Regex AnimationMatch => - new("питон|пайтон|python|путхон|питухон|петухон", RegexOptions.IgnoreCase); + new("питон|пайтон|python|путхон|питухон|петухон", + RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); protected override string GetAnimationName() => "python";