Skip to content

Commit 90aecbe

Browse files
committed
minor cleanup
1 parent 5b74203 commit 90aecbe

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎packages/router-core/src/path.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,11 @@ export type ParsePathnameCache = LRUCache<string, ReadonlyArray<Segment>>
222222
export const parsePathname = (
223223
pathname?: string,
224224
cache?: ParsePathnameCache,
225-
basePathValues?: boolean,
226225
): ReadonlyArray<Segment> => {
227226
if (!pathname) return []
228227
const cached = cache?.get(pathname)
229228
if (cached) return cached
230-
const parsed = baseParsePathname(pathname, basePathValues)
229+
const parsed = baseParsePathname(pathname)
231230
cache?.set(pathname, parsed)
232231
return parsed
233232
}
@@ -257,10 +256,7 @@ const WILDCARD_W_CURLY_BRACES_RE = /^(.*?)\{\$\}(.*)$/ // prefix{$}suffix
257256
* - `/foo/[$]{$foo} - Dynamic route with a static prefix of `$`
258257
* - `/foo/{$foo}[$]` - Dynamic route with a static suffix of `$`
259258
*/
260-
function baseParsePathname(
261-
pathname: string,
262-
basePathValues?: boolean,
263-
): ReadonlyArray<Segment> {
259+
function baseParsePathname(pathname: string): ReadonlyArray<Segment> {
264260
pathname = cleanPath(pathname)
265261

266262
const segments: Array<Segment> = []

0 commit comments

Comments
 (0)