Permalink
Browse files

Make hash routing case-insensitive.

  • Loading branch information...
1 parent 7c6a58c commit 72e4595fadec79c4c15fa7c43a951fb8fd805669 @fblee fblee committed Feb 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/lib/router.js
View
@@ -298,9 +298,9 @@ _.extend(History.prototype, /*Events,*/ {
var fragment = this.fragment = this.getFragment(fragmentOverride);
var matched = _.any(this.handlers, function (handler) {
- if (handler.route.test(fragment)) {
+ if (handler.route.test(fragment.toLowerCase())) {
that._currentUrl = fragment;
- (handler.enter || handler.callback)(fragment);
+ (handler.enter || handler.callback)(fragment.toLowerCase());
return true;
}
});

0 comments on commit 72e4595

Please sign in to comment.