Permalink
Browse files

fix to acomodate regex changes

  • Loading branch information...
1 parent aa8c400 commit 2231fb2cd4427cac845e07623566d29e0be07df8 @haggen committed Aug 24, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/test.js
View
@@ -6,42 +6,42 @@ way = require('../way.js');
routes = [
{
pattern: '/a',
- re: /^\/a/,
+ re: /^\/a$/,
params: [],
action: function() {}
}, {
pattern: '/b/:c',
- re: /^\/b\/([^\/]+?)/,
+ re: /^\/b\/([^\/]+?)$/,
params: ['c'],
action: function() {}
}, {
pattern: '/b/d',
- re: /^\/b\/d/,
+ re: /^\/b\/d$/,
params: [],
action: function() {}
}, {
pattern: '/c(/d)',
- re: /^\/c(\/d)?/,
+ re: /^\/c(\/d)?$/,
params: ['_'],
action: function() {}
}, {
pattern: '/d/*/e',
- re: /^\/d\/(.+?)\/e/,
+ re: /^\/d\/(.+?)\/e$/,
params: ['splat'],
action: function() {}
}, {
pattern: '/e(/f)(/g)',
- re: /^\/e(\/f)?(\/g)?/,
+ re: /^\/e(\/f)?(\/g)?$/,
params: ['_', '_'],
action: function() {}
}, {
pattern: '/f/:g(/:h)',
- re: /^\/f\/([^\/]+?)(\/([^\/]+?))?/,
+ re: /^\/f\/([^\/]+?)(\/([^\/]+?))?$/,
params: ['g', '_', 'h'],
action: function() {}
}, {
pattern: '/g(/:h)/:i/*',
- re: /^\/g(\/([^\/]+?))?\/([^\/]+?)\/(.+?)/,
+ re: /^\/g(\/([^\/]+?))?\/([^\/]+?)\/(.+?)$/,
params: ['_', 'h', 'i', 'splat'],
action: function() {}
}

0 comments on commit 2231fb2

Please sign in to comment.