Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug where values parsed were being sliced

  • Loading branch information...
commit 8860c995f58e0b22067dbe385bc44e84a2f214a7 1 parent f223a9f
@haggen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 way.js
View
4 way.js
@@ -41,13 +41,13 @@
re = re.replace(/:(\w[\w\d]*)|\(/g, function(m, n) {
// console.log(m, n, m === '(' ? '_' : n, m === '(' ? '(' : '([^\\/]+?)');
route.params.push(m === '(' ? '_' : n);
- return m === '(' ? '(' : '([^\\/]+?)';
+ return m === '(' ? '(' : '([^\\/]+)';
});
// Translate splats
re = re.replace(/\*/g, function() {
route.params.push('splat');
- return '(.+?)';
+ return '(.+)';
});
return new RegExp('^' + re);
Please sign in to comment.
Something went wrong with that request. Please try again.