mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-05 02:14:17 +02:00
Moved Regex for baseUrl to Globalbase
This commit is contained in:
@ -13,7 +13,9 @@ public class Gotify : NotificationConnector
|
||||
[JsonConstructor]
|
||||
public Gotify(GlobalBase clone, string endpoint, string appToken) : base(clone, NotificationConnectorType.Gotify)
|
||||
{
|
||||
this.endpoint = endpoint;
|
||||
if (!baseUrlRex.IsMatch(endpoint))
|
||||
throw new ArgumentException("endpoint does not match pattern");
|
||||
this.endpoint = baseUrlRex.Match(endpoint).Value;;
|
||||
this.appToken = appToken;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user