Commit b499a094 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Sanitize user rules by removing www. prefix

Fixes #144
parent 0f288276
......@@ -110,7 +110,7 @@ class DnsRuleDialog(context: Context, dnsRule: DnsRule? = null, onRuleCreated: (
if(it.contains("*")) {
isWildcard = true
it.replace("**", "%%").replace("*", "%")
} else it
} else it.replace(Regex("^www\\."), "")
}
val newRule = dnsRule?.copy(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment