Skip to content

Commit 147a2a9

Browse files
authored
fix: fix port doesnt match (#576)
1 parent 0253c33 commit 147a2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const parseQuery = (location: Location) => {
2727

2828
const prepareRoute = (route: string) => {
2929
let preparedRoute = route;
30-
const portRegExp = /:\d{3, 5}/g;
30+
const portRegExp = /:\d{3,5}/g;
3131
const portMatch = route.match(portRegExp);
3232

3333
// if port exists in route we escape port to avoid errors in function compile()

0 commit comments

Comments
 (0)