Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingMech2418 committed Aug 5, 2020
1 parent 8bf7427 commit e43bfcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/processNested.js
Expand Up @@ -21,7 +21,7 @@ module.exports = function(data){
let k = keyParts[index];

// Ensure we don't allow prototype pollution
if (OBJECT_PROTOTYPE_KEYS.includes(k) || (ARRAY_PROTOTYPE_KEYS.includes(k) && Array.isArray(current)) {
if (OBJECT_PROTOTYPE_KEYS.includes(k) || (ARRAY_PROTOTYPE_KEYS.includes(k) && Array.isArray(current))) {
continue;
}

Expand All @@ -34,5 +34,7 @@ module.exports = function(data){
}
}



return d;
};

0 comments on commit e43bfcf

Please sign in to comment.