Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NoReplace option to restrictions #40

Closed
wants to merge 18 commits into from
Closed

Conversation

dnitsch
Copy link
Contributor

@dnitsch dnitsch commented Jan 31, 2023

To cover cases where the input string already contains text which can be assigned to an itemVariable, see TestNoReplace for details.

Option not carried to CLI as the existing NoDigit addition works well for CLI templating - but in addition with NoDigit NoReplace will work well for programmatic use cases for example: envsubst.StringNoReplace(payload, false, false, true, true)

as an example see here

@dnitsch
Copy link
Contributor Author

dnitsch commented Feb 1, 2023

actually this may not be the way to go ... more thought required as to the usefulness of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant