Fixed makeUri???
This commit is contained in:
parent
a7c8a95af7
commit
2a62bd8eb6
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue