mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 13:58:06 -05:00
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:
@@ -710,7 +710,7 @@
|
||||
};
|
||||
|
||||
// Cached regex for cleaning hashes.
|
||||
var hashStrip = /^#*/;
|
||||
var hashStrip = /^#/;
|
||||
|
||||
// Cached regex for detecting MSIE.
|
||||
var isExplorer = /msie [\w.]+/;
|
||||
|
||||
Reference in New Issue
Block a user