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:
이윤혁/연구원/TV Contents Service팀(yunhyeok.lee@lge.com)
2019-05-09 15:20:58 +09:00
parent d1b1aa2636
commit c8d649deec

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}`);
}); });
} }
@@ -423,4 +423,4 @@ module.exports.hideApplicationInstance = hideApplicationInstance;
module.exports.constructAppResourceUrl = constructAppResourceUrl; module.exports.constructAppResourceUrl = constructAppResourceUrl;
module.exports.getAppsUrl = getAppsUrl; module.exports.getAppsUrl = getAppsUrl;
module.exports.getLocation = getLocation; module.exports.getLocation = getLocation;
module.exports.sleepSystem = sleepSystem; module.exports.sleepSystem = sleepSystem;