OctopusDeploy / Octostache

| Public | The variable substitution syntax for Octopus Deploy
Other
5 stars 24 forks source link

Filters like PeriodsToHypens, HypensToUnderscores etc #24

Closed mcintyre321 closed 6 years ago

mcintyre321 commented 6 years ago

Our environment names are things like dev.mysite.com and it would be helpful to be able to insert a cleaned up version of these these into other variables without the special characters e.g. so that they can be used in a database name.

It would be great to have a few filters like PeriodsToHypens, HypensToUnderscores, UnderscoresToPeriods etc. which could be used to make the variables safe.

droyad commented 6 years ago

We could add a Regex replace filter

droyad commented 6 years ago

Just saw #23, that possibly would cover your needs?

mcintyre321 commented 6 years ago

Yes I think it does :) thanks!