Node.js based forum software built for the modern web
added regex keys to mongo
Baris Soner Usakli5c6a7d4b9403
diff --git a/src/database/mongo.js b/src/database/mongo.jsindex 051d7aa930..6b8e02df08 100644--- a/src/database/mongo.js+++ b/src/database/mongo.js@@ -73,7 +73,7 @@}module.keys = function(key, callback) {- throw new Error('not-implemented');+ db.collection.find( { _key: { $regex: key /*, $options: 'i'*/ } } );}//hashes