Skip to content

Commit 248b695

Browse files
Fix typo (#44)
1 parent 447cde2 commit 248b695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/404.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ window.onload = function () {
2020
// redirect a semver (/2.0.1) to a directory name (/2_0)
2121
let parts = path.match(/^\\/(?<major>[0-9]+)\\.(?<minor>[0-9])+\\.[0-9]+(?<rest>\\/.*)?$/)?.groups;
2222
if (parts) {
23-
window.location.replace('/' + parts['major'] + '_' + parts['minor'] + parts['rest'] || '')
23+
window.location.replace('/' + parts['major'] + '_' + parts['minor'] + (parts['rest'] || ''))
2424
}
2525
};
2626
`}</script>

0 commit comments

Comments
 (0)