From 2a62bd8eb6b5878c247bf8a27c9441c9943f067b Mon Sep 17 00:00:00 2001 From: regiostech Date: Sun, 26 Jun 2016 21:27:40 -0400 Subject: [PATCH] Fixed makeUri??? --- lib/src/http/route.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/http/route.dart b/lib/src/http/route.dart index 43c071f9..1abcb771 100644 --- a/lib/src/http/route.dart +++ b/lib/src/http/route.dart @@ -46,11 +46,11 @@ class Route { String result = path; if (params != null) { for (String key in (params.keys)) { - result = result.replaceAll(new RegExp(":$key"), params[key].toString()); + result = result.replaceAll(new RegExp(":$key" + r"\??"), params[key].toString()); } } - return result; + return result.replaceAll("*", ""); } /// Enables one or more handlers to be called whenever this route is visited.