Ok but, please, add unit test with uses cases : 

- "*.domain.tld" and "my.domain.tld"
- "*.domain.tld" and "my.sub.domain.tld"
- "*.sub.domain.tld" and "my.sub.domain.tld"