From 3bb2680729e0c8c4b08a33c6ed02e56f693d30f0 Mon Sep 17 00:00:00 2001 From: Ludvig Hozman Date: Fri, 6 Sep 2024 08:19:32 +0200 Subject: [PATCH] =?UTF-8?q?Fiks=20d=C3=A5rlig=20regex=20som=20ikke=20funke?= =?UTF-8?q?r=20i=20prod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/environment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/environment.ts b/src/utils/environment.ts index d476ce33f..c3dbe9aa1 100644 --- a/src/utils/environment.ts +++ b/src/utils/environment.ts @@ -24,10 +24,10 @@ export const getEnvFromHost = () => { }; export const getDomainFromHost = (): 'ANSATT' | 'NAV_NO' | 'LOCAL' => { - const matchAnsatt = window.location.host.match(/\.ansatt\.(dev)?\.nav\.no/); + const matchAnsatt = window.location.host.match(/\.ansatt(\.dev)?\.nav\.no/); if (matchAnsatt) return 'ANSATT'; - const matchIntern = window.location.host.match(/\.intern\.(dev)?\.nav\.no/); + const matchIntern = window.location.host.match(/\.intern(\.dev)?\.nav\.no/); if (matchIntern) return 'NAV_NO'; return 'LOCAL';