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() 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}`);
}); });
} }