diff options
Diffstat (limited to '')
-rw-r--r-- | src/DiscordWebhooks.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DiscordWebhooks.ts b/src/DiscordWebhooks.ts index 77f8575..d5440c7 100644 --- a/src/DiscordWebhooks.ts +++ b/src/DiscordWebhooks.ts @@ -41,7 +41,7 @@ class DiscordWebhooks { } private parseDiscordWebhook (url: string) { - const re = /discord[app]?.com\/api\/webhooks\/([^\/]+)\/([^\/]+)/ + const re = /discord(?:app)?.com\/api\/webhooks\/([^\/]+)\/([^\/]+)/ // the is of the webhook let id = null |