documentcloud/backbone — pull request #908 by devth (2012-01-31 06:51:13+00:00)
Title: Fix parsing in `getFragment`

Two issues:

- `fragment.indexOf` logic was incorrect. Changed to check for > -1.
- Slash was being stripped off the fragment before `indexOf` took place.
Since `root` is in the format "/publich/search/", `routeStripper` must
take place after checking `indexOf`.

It appears this bug was introduced in #786.

Fix #905