- private static createByString(author: string, podUrl: string) {
- let [ host, port ] = podUrl.replace(/^https?:\/\//, '').split(':');
-
- if (port === '80' || port === '443') {
- port = '';
- } else {
- port = ':' + port;
- }
-
- return author + '@' + host + port;
+ private static createByString(author: string, podHost: string) {
+ return author + '@' + podHost;