[Pkg-javascript-commits] [backbone] 105/211: change hashStrip regex to strip bang as well, so hash-bang urls will work transparently

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.0
in repository backbone.

commit 21fa0aa6a276fcced53fba384d926c13aa00d6a9
Author: Brandon Leonardo <brandon.leonardo at gmail.com>
Date:   Mon Apr 11 01:49:19 2011 -0700

    change hashStrip regex to strip bang as well, so hash-bang urls will work transparently
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index ed88feb..6accd5c 100644
--- a/backbone.js
+++ b/backbone.js
@@ -731,7 +731,7 @@
   };
 
   // Cached regex for cleaning hashes.
-  var hashStrip = /^#*/;
+  var hashStrip = /^#*!?/;
 
   // Has the history handling already been started?
   var historyStarted = false;

-- 
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