mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
Merge pull request #24 from kannsky/master
Fix regular expression for appUrl.replace.
This commit is contained in:
@@ -279,7 +279,7 @@ function constructAppResourceUrl(host, appName) {
|
|||||||
return new Q()
|
return new Q()
|
||||||
.then(getAppsUrl.bind(null, host))
|
.then(getAppsUrl.bind(null, host))
|
||||||
.then(function (appUrl) {
|
.then(function (appUrl) {
|
||||||
return appUrl.replace(/\/+$/, `/${appName}`);
|
return appUrl.replace(/\/*$/, `/${appName}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user