change hashStrip regex to strip bang as well, so hash-bang urls will work transparently

This commit is contained in:
Brandon Leonardo
2011-04-11 01:49:19 -07:00
parent f4cfbd633d
commit 21fa0aa6a2

View File

@@ -731,7 +731,7 @@
};
// Cached regex for cleaning hashes.
var hashStrip = /^#*/;
var hashStrip = /^#*!?/;
// Has the history handling already been started?
var historyStarted = false;