[Pkg-javascript-commits] [backbone] 113/281: Only remove single '#' when getting URL fragment.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:02:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.0
in repository backbone.
commit fd78dbf14eeacd69836ed4f681192ab91ee2a361
Author: Robert Gieseke <robert.gieseke at gmail.com>
Date: Sun Dec 4 14:31:01 2011 +0100
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 dabed49..4295e47 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.]+/;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list