host=*.domain wildcarding broken
" https://www.eff.org/https-everywhere/rulesets
A target may, however, contain a wildcard in one portion of the domain (like .google.com or google., but .google. would not work). A wildcard on the left will match arbitrarily deep subdomains (for instance, *.facebook.com will match s-static.ak.facebook.com).1
Exception: currently this is not true for a target host that is less than three levels deep. would match thing.com but not very.thing.com. We would consider changing that if anybody needs to use it. means a ruleset should be tested for every single URL. "
Sure, all fine. But put a said host='*.2ld.tld' in xmlconfig, and browse a 4ld.3ld.2ld.tld, and you will not be rewritten. So it's broken, or counter-documented.
I would fix it by sticking to the (pcre.org / www.regular-expressions.info/pcre.html) that the rules overall seem to conform to, rather than making the separate documented hack... host='^.*.2ld.tld$' is not so bad.... assuming I got this report right, that is.
If not, what regex are the rules written in?