Skip to content

Commit

Permalink
fix: better route matching by improving matching order
Browse files Browse the repository at this point in the history
Fixes #8
  • Loading branch information
troch committed Jul 23, 2015
1 parent 9a24441 commit 2ce0605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "router5",
"version": "0.2.1",
"version": "0.2.2",
"description": "An HTML5 router, based on route-node and path-parser",
"main": "dist/commonjs/index.js",
"scripts": {
Expand All @@ -27,7 +27,7 @@
},
"homepage": "http://router5.github.io",
"dependencies": {
"route-node": "~0.1.2"
"route-node": "~0.1.3"
},
"devDependencies": {
"async": "^1.3.0",
Expand Down
1 change: 1 addition & 0 deletions tests/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ router = new Router5([
.setOption('useHash', true)
.setOption('hashPrefix', '!')
.add(ordersRoute)
.addNode('index', '/')
.addNode('home', '/home')
.addNode('admin', '/admin', function canActivate() { return false; });

Expand Down

0 comments on commit 2ce0605

Please sign in to comment.