Skip to content

Commit

Permalink
fix(HashRouter): Fix broken path matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyCoffee committed Jan 20, 2025
1 parent 9ba0e93 commit 91566f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/utility/hash-router/match-path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UrlParams } from "./types"

const paramMatcher = /:[^/]+/g
const paramMatcher = /:[^/]+/

const hasParams = (path: string) => paramMatcher.test(path)

Expand Down

0 comments on commit 91566f0

Please sign in to comment.