Skip to content

Commit

Permalink
fix: remove matching of substrings containing "ty" or "tysm"
Browse files Browse the repository at this point in the history
  • Loading branch information
realstealthninja authored and RheaAyase committed Aug 18, 2024
1 parent 43b917e commit 5322275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Karma.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Karma: IModule
private const string KarmaDisabledString = "Karma is disabled on this server.";

private ValkyrjaClient Client;
private readonly Regex RegexKarma = new Regex(".*(?<!\\\\)(thank(?!sgiving)|thx|ʞuɐɥʇ|danke|vielen dank|gracias|merci(?!al)|grazie|arigato|dziękuję|dziekuje|obrigad|tysm|ty).*", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private readonly Regex RegexKarma = new Regex(".*(?<!\\\\)(thank(?!sgiving)|thx|ʞuɐɥʇ|danke|vielen dank|gracias|merci(?!al)|grazie|arigato|dziękuję|dziekuje|obrigad|(?:^|\W)ty(sm)?(?:$|\W)).*", RegexOptions.Compiled | RegexOptions.IgnoreCase);


public Func<Exception, string, guid, Task> HandleException{ get; set; }
Expand Down

0 comments on commit 5322275

Please sign in to comment.