Skip to content

Commit

Permalink
fix: ptr syntax is not necessary here
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed May 20, 2024
1 parent 5f64445 commit 447d58b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/router/src/CurrentRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,6 @@ function compareQueries(currentQuery: string, hrefQuery: string) {
}

function splitByQuery(path: string) {
const ptrSyntaxIndex = path.indexOf("\\?")
if (ptrSyntaxIndex > -1) {
const pathname = path.slice(0, ptrSyntaxIndex)
const query = path.slice(ptrSyntaxIndex + 1).trim()
return [pathname, query] as const
}

const queryIndex = path.indexOf("?")
if (queryIndex > -1) {
const pathname = path.slice(0, queryIndex)
Expand Down

0 comments on commit 447d58b

Please sign in to comment.