diff --git a/objectid.js b/objectid.js index 541f5ad..a5e4f3f 100644 --- a/objectid.js +++ b/objectid.js @@ -133,7 +133,7 @@ ObjectID.isValid = function(id) { if (id == null) return false; try { - new ObjectId(id); + new ObjectID(id); return true; } catch { return false;