1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-23 17:50:19 +01:00

Fix bug in document handler

This commit is contained in:
John Crepezzi 2011-11-22 20:38:52 -05:00
parent 051a545a55
commit ab47aeb88b
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Haste # Haste
Sharing code is a good thing, and it should be _really_ easy to do it. <b>Sharing code is a good thing</b>, and it should be _really_ easy to do it.
A lot of times, I want to show you something I'm seeing - and that's where we use pastebins. A lot of times, I want to show you something I'm seeing - and that's where we use pastebins.
Haste is the prettiest, easist to use pastebin ever made. Haste is the prettiest, easist to use pastebin ever made.

View file

@ -80,7 +80,7 @@ DocumentHandler.prototype.chooseKey = function(callback) {
// Return a boolean indicating whether or not something can be a key // Return a boolean indicating whether or not something can be a key
DocumentHandler.potentialKey = function(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 // Generate a random key