From 269646a4552f000cb439a79481e487db7ca94626 Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 22 Nov 2021 17:05:13 -0500 Subject: [PATCH] fix(webhook): don't try escaping backslashes in a raw string --- PluralKit.Bot/Commands/Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Api.cs b/PluralKit.Bot/Commands/Api.cs index 85d0634f..ad2de2ff 100644 --- a/PluralKit.Bot/Commands/Api.cs +++ b/PluralKit.Bot/Commands/Api.cs @@ -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;