Merge pull request #24 from kannsky/master

Fix regular expression for appUrl.replace.
This commit is contained in:
kemorrisnf
2019-09-30 15:49:47 -07:00
committed by GitHub

View File

@@ -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;