fixed parser

This commit is contained in:
akshtshrma24
2022-08-06 23:10:10 -07:00
parent ceceb475c7
commit 16dcdf656d
+1 -1
View File
@@ -84,7 +84,7 @@ func checkWhURL(whURL string) {
log.Fatalf("The Discord WebHook URL doesn't seem to be a valid URL.")
}
re := regexp.MustCompile(`https://discord(?:app)?.com/api/webhooks/[0-9]{18}/[a-zA-Z0-9_-]+`)
re := regexp.MustCompile(`https://discord(?:app)?.com/api/webhooks/[0-9]{18,19}/[a-zA-Z0-9_-]+`)
if ok := re.Match([]byte(whURL)); !ok {
log.Printf("The Discord WebHook URL doesn't seem to be valid.")
}