commit:4fada9be5451cd415c6a9fb4786391f2996cddec
author:Chip Black
committer:Chip Black
date:Wed Jan 19 01:14:18 2011 -0800
parents:5d46e624304634a1deba30ba0072984b17704cab
Accept proper tag chars in hashSwitch()
diff --git a/www/js/blerg.js b/www/js/blerg.js
line changes: +1/-1
index 2415483..eae9cbc
--- a/www/js/blerg.js
+++ b/www/js/blerg.js
@@ -433,7 +433,7 @@ function hashSwitch() {
     if (m = location.search.match(/^\?post\/([^/]+)\/(.+)/)) {
         $('post').show();
         $('post.content').value = '[' + decodeURIComponent(m[1]).replace(']','').replace('[','') + '](' + decodeURIComponent(m[2]) + ')';
-    } else if (m = location.hash.match(/^#(ref|tag)\/(\w+)$/)) {
+    } else if (m = location.hash.match(/^#(ref|tag)\/([A-Za-z0-9_-]+)$/)) {
         currentPager = new Tag(m[1], m[2]);
         currentPager.show();
     } else if (m = location.hash.match(/^#([A-Za-z0-9_-]+)(:(\d+))?$/)) {