Accept proper tag chars in 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+))?$/)) {