File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ export const includeType = new yaml.Type("!include", {
203203 * See the tests for example usage.
204204 */
205205export const listToStringType = new yaml . Type ( "!listToString" , {
206- kind : "scalar " ,
206+ kind : "sequence " ,
207207 construct ( data ) {
208208 try {
209- return readFromYaml ( data ) ;
209+ return data . filter ( ( d ) => typeof d === "string" ) . join ( "" ) ;
210210 } catch ( e ) {
211211 return data ;
212212 }
@@ -249,7 +249,7 @@ export const readFileType = new yaml.Type("!readFile", {
249249 */
250250export const concatStringType = new yaml . Type ( "!concatString" , {
251251 kind : "sequence" ,
252- resolve ( data ) {
252+ resolve ( data ) {
253253 return data . every ( ( d ) => lodash . isString ( d ) ) ;
254254 } ,
255255 construct ( data ) {
You can’t perform that action at this time.
0 commit comments