From fa4a8e442b22ff07c518d443549bca5861860480 Mon Sep 17 00:00:00 2001 From: tienifr Date: Wed, 27 Dec 2023 15:41:04 +0700 Subject: [PATCH] fix lint --- src/libs/Navigation/Navigation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ? '/' : '')); } /**