parent
7b0a7e711d
commit
db248efd96
4 changed files with 10 additions and 4 deletions
@ -0,0 +1,8 @@ |
|||||||
|
export const getHostNameDomain = (hostName: string) => |
||||||
|
hostName.replace(/^.*?[.]/, ''); |
||||||
|
|
||||||
|
export const getHostNamePrefix = (hostName: string) => |
||||||
|
hostName.replace(/-.*$/, ''); |
||||||
|
|
||||||
|
export const getShortHostName = (hostName: string) => |
||||||
|
hostName.replace(/[.].*$/, ''); |
@ -1,2 +0,0 @@ |
|||||||
export const getShortHostName = (hostName: string) => |
|
||||||
hostName.replace(/[.].*$/, ''); |
|
Loading…
Reference in new issue