mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-29 13:00:21 +02:00
Mandatory host body and suffic for wildcard urls
This commit is contained in:
parent
31b43da96f
commit
34d76e79ed
@ -176,7 +176,7 @@ class SourcePluginConfig(
|
|||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
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 {
|
fun fromJson(json: String, sourceUrl: String? = null): SourcePluginConfig {
|
||||||
val obj = Serializer.json.decodeFromString<SourcePluginConfig>(json);
|
val obj = Serializer.json.decodeFromString<SourcePluginConfig>(json);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user