Skip to content

Commit

Permalink
Merge 0e5e7ac into 9d49bdc
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdstep committed Apr 7, 2017
2 parents 9d49bdc + 0e5e7ac commit 7a80274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var anymatch = function(criteria, value, returnIndex, startIndex, endIndex) {
var matchIndex = -1;
function testCriteria(criterion, index) {
var result;
switch (toString.call(criterion)) {
switch (Object.prototype.toString.call(criterion)) {
case '[object String]':
result = string === criterion || altString && altString === criterion;
result = result || micromatch.isMatch(string, criterion);
Expand Down

0 comments on commit 7a80274

Please sign in to comment.