alterx icon indicating copy to clipboard operation
alterx copied to clipboard

allow words to be in the template

Open meme-lord opened this issue 1 year ago • 0 comments

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.

meme-lord avatar Aug 01 '24 20:08 meme-lord