From ab47aeb88b56dd4db1cbb31cb570c0e1d291d5ea Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Tue, 22 Nov 2011 20:38:52 -0500 Subject: [PATCH 1/2] Fix bug in document handler --- about.md | 2 +- lib/document_handler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/about.md b/about.md index 3e06889..153a7fa 100644 --- a/about.md +++ b/about.md @@ -1,6 +1,6 @@ # Haste -Sharing code is a good thing, and it should be _really_ easy to do it. +Sharing code is a good thing, 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. 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 From 2089a14ad79366b7cf786570f74062a6455a2c70 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Wed, 23 Nov 2011 11:32:49 -0500 Subject: [PATCH 2/2] TODO --- TODO.md | 1 + 1 file changed, 1 insertion(+) diff --git a/TODO.md b/TODO.md index 408e430..0c9029e 100644 --- a/TODO.md +++ b/TODO.md @@ -6,6 +6,7 @@ * kick expiration back by increment on each view * Add file extensions ourselves to push state * Proper markdown highlighting +* Better about page text # shared version only