Commit ab47aeb8 authored by John Crepezzi's avatar John Crepezzi
Browse files

Fix bug in document handler

parent 051a545a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
# 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.

Haste is the prettiest, easist to use pastebin ever made.
+1 −1
Original line number Diff line number Diff line
@@ -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