Fixed makeUri???

This commit is contained in:
regiostech 2016-06-26 21:27:40 -04:00
parent a7c8a95af7
commit 2a62bd8eb6

View file

@ -46,11 +46,11 @@ class Route {
String result = path; String result = path;
if (params != null) { if (params != null) {
for (String key in (params.keys)) { 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. /// Enables one or more handlers to be called whenever this route is visited.