Closed kamermans closed 5 years ago
(Not package author, just interested bystander.)
You didn’t set the component delimiter, which is by default a slash (for file paths). Viewing your examples as file names the behavior is correct.
Nevermind, I am just blind apparently - the second argument to MustCompile()
is the separator. Everything works as documented, thanks @calmh!
Thanks for the library, great work!
Please consider this example:
In my understanding (and use case),
*.github.com
should not matchfoo.api.github.com
since the single asterisk should only match one component in the domain (api
). If I wanted to match multiple components, likefoo.api
, I would use**.github.com
.