From ba9389c15edfd501affcddfeec2209c74ce9fe96 Mon Sep 17 00:00:00 2001
From: Security-Chief-Odo
 <87156706+Security-Chief-Odo@users.noreply.github.com>
Date: Tue, 4 Jul 2023 10:13:04 -0500
Subject: [PATCH] Updated the regex for isAuthPath to reduce false positive
 hits (#1806)

* OUpdated the regex for isAuthPath to reduce false positive hits as described in issue #1704

* Updated the regex for isAuthPath to reduce false positive hits - Re-ran Linting
---
 src/shared/utils/app/is-auth-path.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/utils/app/is-auth-path.ts b/src/shared/utils/app/is-auth-path.ts
index 5a201ac..fc65e0c 100644
--- a/src/shared/utils/app/is-auth-path.ts
+++ b/src/shared/utils/app/is-auth-path.ts
@@ -1,5 +1,5 @@
 export default function isAuthPath(pathname: string) {
-  return /^\/create_.*|inbox|settings|admin|reports|registration_applications/g.test(
+  return /^\/(create_.*?|inbox|settings|admin|reports|registration_applications)\b/g.test(
     pathname
   );
 }
-- 
2.44.1