Instead of just dropping patterns that aren't defined in the Preferences file as an array, could we allow them by just returning the single pattern?

For example, instead of returning an empty string here, could we just `return filter;`?  That would allow a user to specify a single pattern (ie. without the array notation) in the Preferences file like this:
`
"fileFilters": [
  {
    "name": "JS files",
    "patterns": "*.js"
  }
]
`