diff --git a/src/libs/Navigation/Navigation.ts b/src/libs/Navigation/Navigation.ts
index d1c6459a8aee..bc8c998a9f87 100644
--- a/src/libs/Navigation/Navigation.ts
+++ b/src/libs/Navigation/Navigation.ts
@@ -116,7 +116,7 @@ function getActiveRoute(): string {
 function isActiveRoute(routePath: Route): boolean {
     // We remove First forward slash from the URL
     // And redundant (consecutive and trailing) slashes from path before matching
-    return getActiveRoute().substring(1) === routePath.replace(CONST.REGEX.ROUTES.REDUNDANT_SLASHES, (_, p1) => (p1 ? '/' : ''));
+    return getActiveRoute().substring(1) === routePath.replace(CONST.REGEX.ROUTES.REDUNDANT_SLASHES, (match, p1) => (p1 ? '/' : ''));
 }
 
 /**