We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447cde2 commit 248b695Copy full SHA for 248b695
src/content/docs/404.mdx
@@ -20,7 +20,7 @@ window.onload = function () {
20
// redirect a semver (/2.0.1) to a directory name (/2_0)
21
let parts = path.match(/^\\/(?<major>[0-9]+)\\.(?<minor>[0-9])+\\.[0-9]+(?<rest>\\/.*)?$/)?.groups;
22
if (parts) {
23
- window.location.replace('/' + parts['major'] + '_' + parts['minor'] + parts['rest'] || '')
+ window.location.replace('/' + parts['major'] + '_' + parts['minor'] + (parts['rest'] || ''))
24
}
25
};
26
`}</script>
0 commit comments