We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beacec0 commit 103404cCopy full SHA for 103404c
lib/gistClient.js
@@ -220,7 +220,9 @@ let GistClient = function () {
220
const matchWithFilters = filters => content => {
221
const matches = filters.filter(filter => {
222
const filterName = _.chain(filter).keys().first().value()
223
- return !!_.get(content, filterName, '').match(filter[filterName])
+ const value = _.get(content, filterName, '')
224
+ const valueAsString = _.includes(['object', 'array'], typeof value) ? JSON.stringify(value) : value
225
+ return !!valueAsString.match(filter[filterName])
226
})
227
return matches.length === filters.length
228
}
0 commit comments