alterx
alterx copied to clipboard
allow words to be in the template
This fixes #168
The check strings.Contains(template, word) has lots of unintended consequences.
Examples:
api-pizzapie.site.com would not be allowed as pizzapie contains api
site-api.site.com would not be allowed as site is in the template {{word}}-api.site.com
dev-api.site.dev would not be allowed as dev is in the template {{word}}-api.site.dev
I thought about adding a command option or adding a more complex check but decided just removing it is better. I don't think the optimization saves much anyway, DNS requests are cheap.