Skip to content

Commit 5501047

Browse files
committed
Router: Allow periods in hash values
1 parent 733603c commit 5501047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router/utils/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const getValuesFromHash = (hash = '', path) => {
150150
// we already did the matching part
151151
path = stripRegex(path, '')
152152

153-
const getUrlParts = /(\/?:?[\w%\s:-]+)/g
153+
const getUrlParts = /(\/?:?[\w%\s:.-]+)/g
154154
const hashParts = hash.match(getUrlParts) || []
155155
const routeParts = path.match(getUrlParts) || []
156156
const getNamedGroup = /^\/:([\w-]+)\/?/

0 commit comments

Comments
 (0)