mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 02:49:58 +00:00
Fix regular expression for appUrl.replace. This is because, according to
dial document, there is no mention of '/' behind of IP Address/Port/apps
This commit is contained in:
parent
d1b1aa2636
commit
c8d649deec
@@ -279,7 +279,7 @@ function constructAppResourceUrl(host, appName) {
|
||||
return new Q()
|
||||
.then(getAppsUrl.bind(null, host))
|
||||
.then(function (appUrl) {
|
||||
return appUrl.replace(/\/+$/, `/${appName}`);
|
||||
return appUrl.replace(/\/*$/, `/${appName}`);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -423,4 +423,4 @@ module.exports.hideApplicationInstance = hideApplicationInstance;
|
||||
module.exports.constructAppResourceUrl = constructAppResourceUrl;
|
||||
module.exports.getAppsUrl = getAppsUrl;
|
||||
module.exports.getLocation = getLocation;
|
||||
module.exports.sleepSystem = sleepSystem;
|
||||
module.exports.sleepSystem = sleepSystem;
|
||||
|
||||
Reference in New Issue
Block a user