Skip to content

Commit fe14da0

Browse files
authored
fix(search): highlights accepts string parameter (#628)
1 parent 08962bb commit fe14da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module.exports = function(AV) {
162162
highlights: function(highlights) {
163163
var objects;
164164
if (highlights && _.isString(highlights)) {
165-
objects = arguments;
165+
objects = _.toArray(arguments);
166166
} else {
167167
objects = highlights;
168168
}

0 commit comments

Comments
 (0)