Mandatory host body and suffic for wildcard urls

This commit is contained in:
Kelvin 2024-07-17 19:31:59 +02:00
parent 31b43da96f
commit 34d76e79ed

View file

@ -176,7 +176,7 @@ class SourcePluginConfig(
}
companion object {
private val _allowRegex = Regex("\\*\\.[a-z0-9]*\\.[a-z]*");
private val _allowRegex = Regex("\\*\\.[a-z0-9]+\\.[a-z]+");
fun fromJson(json: String, sourceUrl: String? = null): SourcePluginConfig {
val obj = Serializer.json.decodeFromString<SourcePluginConfig>(json);