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'.
This commit is contained in:
Robert Gieseke
2011-12-04 14:31:01 +01:00
parent 8adac9136c
commit fd78dbf14e

View File

@@ -710,7 +710,7 @@
};
// Cached regex for cleaning hashes.
var hashStrip = /^#*/;
var hashStrip = /^#/;
// Cached regex for detecting MSIE.
var isExplorer = /msie [\w.]+/;