mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Yet another attempt to fix case insensitive matching.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace West.Entertainment.Handler.Fun
|
|||||||
public Bayan(CoreContext db) : base(db) { }
|
public Bayan(CoreContext db) : base(db) { }
|
||||||
|
|
||||||
protected override Regex AnimationMatch
|
protected override Regex AnimationMatch
|
||||||
=> new("^баян$", RegexOptions.IgnoreCase);
|
=> new("^баян$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||||
|
|
||||||
protected override string GetAnimationName()
|
protected override string GetAnimationName()
|
||||||
=> "bayan";
|
=> "bayan";
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ namespace West.Entertainment.Handler.Fun
|
|||||||
public class Python : AbstractAnimationReply
|
public class Python : AbstractAnimationReply
|
||||||
{
|
{
|
||||||
protected override Regex AnimationMatch =>
|
protected override Regex AnimationMatch =>
|
||||||
new("питон|пайтон|python|путхон|питухон|петухон", RegexOptions.IgnoreCase);
|
new("питон|пайтон|python|путхон|питухон|петухон",
|
||||||
|
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
|
||||||
|
|
||||||
protected override string GetAnimationName()
|
protected override string GetAnimationName()
|
||||||
=> "python";
|
=> "python";
|
||||||
|
|||||||
Reference in New Issue
Block a user