Skip to content

Commit

Permalink
Add support for more product codes (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlexBy420 authored Apr 13, 2024
1 parent 5b75779 commit 28f3104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CompatBot/EventHandlers/ProductCodeLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace CompatBot.EventHandlers;
internal static class ProductCodeLookup
{
// see http://www.psdevwiki.com/ps3/Productcode
public static readonly Regex ProductCode = new(@"(?<letters>(?:[BPSUVX][CL]|P[ETU]|NP)[AEHJKPUIX][ABJKLMPQRST]|MRTC)[ \-]?(?<numbers>\d{5})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static readonly Regex ProductCode = new(@"(?<letters>(?:[BPSUVX][CL]|P[ETU]|NP)[AEHJKPUIX][ABDJKLMPQRSTX]|MRTC)[ \-]?(?<numbers>\d{5})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Client CompatClient = new();

public static async Task OnMessageCreated(DiscordClient c, MessageCreateEventArgs args)
Expand Down Expand Up @@ -175,4 +175,4 @@ public static async Task FixAfrikaAsync(DiscordClient client, DiscordMessage mes
await message.ReactWithAsync(sqvat).ConfigureAwait(false);
}
}
}
}

0 comments on commit 28f3104

Please sign in to comment.