Skip to content

Commit

Permalink
feat: "filer" is now always an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanshelton913 committed May 7, 2024
1 parent 7f6e135 commit eee4f6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ function badYamlToObj(text: string) {

return obj;
}

/**
* normalize keys to known types
* @param obj
* @returns
*/
function normalizeKnownKeysAsAppropriateDataTypes(obj: IndexedObject) {
if (obj.filer && !Array.isArray(obj.filer)) {
obj.filer = [obj.filer] as IndexedObject[];
Expand Down

0 comments on commit eee4f6d

Please sign in to comment.