Skip to content

Commit 72083fc

Browse files
authored
remove trimming of .local from hostname (#190)
1 parent eeac61e commit 72083fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/views/codeAnalytics/CodeObjectGroups/CodeObjectGroupEnvUsage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ export class CodeObjectGroupEnvironments implements IRenderCodeObjectGroupEnviro
4343

4444
private isLocalEnvironmentMine(environment:string){
4545
var hostname = os.hostname().toLowerCase();
46-
var hostnameNoLocal = hostname.replace(new RegExp(".local$"), "");
4746
var env = environment.toLowerCase();
48-
return env.startsWith(hostname) || env.startsWith(hostnameNoLocal);
47+
return env.startsWith(hostname);
4948
}
5049

5150
public getJustEnvironmentsHtml(usageResults: UsageStatusResults): string{

0 commit comments

Comments
 (0)