Skip to content

Commit

Permalink
Merge pull request #20 from nerdstep/master
Browse files Browse the repository at this point in the history
Fixes a bug in IE<=11 when calling toString instead of Object.prototype.toString
  • Loading branch information
es128 authored Jul 27, 2017
2 parents 9d49bdc + 0e5e7ac commit 29976ee
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 29976ee

Please sign in to comment.