Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Dec 27, 2023
1 parent 1bdc866 commit fa4a8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Navigation/Navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '/' : ''));
}

/**
Expand Down

0 comments on commit fa4a8e4

Please sign in to comment.