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

Quoted values have quotes removed #153

Open
mjmelone opened this issue Dec 5, 2024 · 1 comment
Open

Quoted values have quotes removed #153

mjmelone opened this issue Dec 5, 2024 · 1 comment

Comments

@mjmelone
Copy link

mjmelone commented Dec 5, 2024

In its current implementation, convertfrom-yaml will strip quotes from quoted values. Example follows:

"Test: 'foo'" | convertfrom-yaml

Result

Name Value
Test foo

Expected

Name Value
Test 'foo'
@gabriel-samfira
Copy link
Member

Hi @mjmelone,

This is expected. A string in powershell does not have quotes, unless the quotes are part of the literal string. Is the issue that when serializing back to yaml, the quotes are no longer there?

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

No branches or pull requests

2 participants