From 5a0a303a6c627ee2fc47186d4744d23fe27d1e6e Mon Sep 17 00:00:00 2001 From: vyrp Date: Sat, 2 Dec 2017 00:21:14 -0800 Subject: [PATCH] Fix issue #13 'Single-element arrays are not preserved' --- PSYaml/Private/ConvertFrom-YAMLDocument.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/PSYaml/Private/ConvertFrom-YAMLDocument.ps1 b/PSYaml/Private/ConvertFrom-YAMLDocument.ps1 index 9f3cb4f..c52fea4 100644 --- a/PSYaml/Private/ConvertFrom-YAMLDocument.ps1 +++ b/PSYaml/Private/ConvertFrom-YAMLDocument.ps1 @@ -107,6 +107,7 @@ function ConvertFrom-YAMLDocument $theNode | ForEach-Object{ $TheObject += ConvertFrom-YAMLDocument $_ } + return ,$TheObject } else {