diff --git a/lib/document_handler.js b/lib/document_handler.js index 8b7a18c..2ef7421 100644 --- a/lib/document_handler.js +++ b/lib/document_handler.js @@ -80,7 +80,7 @@ DocumentHandler.prototype.chooseKey = function(callback) { // Return a boolean indicating whether or not something can be a key DocumentHandler.potentialKey = function(key) { - return key.match(/^[a-zA-Z0-9]+(\.[a-zA-Z]+?)$/); + return key.match(/^[a-zA-Z0-9]+(\.[a-zA-Z]+)?$/); }; // Generate a random key