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

Wrap config value as string if it contains a colon #1271

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

breiler
Copy link
Contributor

@breiler breiler commented Jul 26, 2024

This is a work-around for the issue #1270

The $Config/Dump command does not wrap values as a string if it contains "special characters" such as : which will result in an invalid YAML.

The proper way should probably be to check if the string contains a " which would wrap the string with '. If it contains a ' it would wrap with ". And it should probably also check for other special characters. But this will solve the immediate problem.

@MitchBradley MitchBradley merged commit becf091 into bdring:main Jul 26, 2024
12 checks passed
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.

2 participants