From fd78dbf14eeacd69836ed4f681192ab91ee2a361 Mon Sep 17 00:00:00 2001 From: Robert Gieseke Date: Sun, 4 Dec 2011 14:31:01 +0100 Subject: [PATCH] Only remove single '#' when getting URL fragment. Firefox has a bug that auto-decodes the hash fragment (https://bugzilla.mozilla.org/show_bug.cgi?id=483304), which makes it impossible to have a hash like '#%23backbone.js'. --- backbone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone.js b/backbone.js index dabed49b..4295e47b 100644 --- a/backbone.js +++ b/backbone.js @@ -710,7 +710,7 @@ }; // Cached regex for cleaning hashes. - var hashStrip = /^#*/; + var hashStrip = /^#/; // Cached regex for detecting MSIE. var isExplorer = /msie [\w.]+/;