mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(webhook): don't try escaping backslashes in a raw string
This commit is contained in:
parent
51c900a378
commit
269646a455
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
private readonly ModelRepository _repo;
|
||||
private readonly DispatchService _dispatch;
|
||||
private static readonly Regex _webhookRegex = new(@"https://(?:\\w+.)?discord(?:app)?.com/api(?:/v.*)?/webhooks/(.*)");
|
||||
private static readonly Regex _webhookRegex = new("https://(?:\\w+.)?discord(?:app)?.com/api(?:/v.*)?/webhooks/(.*)");
|
||||
public Api(ModelRepository repo, DispatchService dispatch)
|
||||
{
|
||||
_repo = repo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue