From 016b3bdffb22cd4edecc3bc6dcf6cbef48b1943b Mon Sep 17 00:00:00 2001 From: Dan Kang Date: Wed, 24 Jul 2013 18:13:14 -0400 Subject: [PATCH] Fixed incorrect encoding/decoding in urlMatcherFactory for parameters. Also wrote unit tests. --- src/urlMatcherFactory.js | 4 ++-- test/urlMatcherFactorySpec.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/urlMatcherFactory.js b/src/urlMatcherFactory.js index a4b4bd62b..0f0e603d5 100644 --- a/src/urlMatcherFactory.js +++ b/src/urlMatcherFactory.js @@ -163,7 +163,7 @@ UrlMatcher.prototype.exec = function (path, searchParams) { if (nPath !== m.length - 1) throw new Error("Unbalanced capture group in route '" + this.source + "'"); - for (i=0; i