@vuepress/shared
Advanced tools
Comparing version 2.0.0-rc.6 to 2.0.0-rc.7
@@ -162,3 +162,3 @@ import { MarkdownItHeader } from '@mdit-vue/types'; | ||
* | ||
* Descibe the tags to be appended into the `<head>` tag | ||
* Describe the tags to be appended into the `<head>` tag | ||
* | ||
@@ -165,0 +165,0 @@ * @default [] |
@@ -82,6 +82,5 @@ // src/utils/resolveHeadIdentifier.ts | ||
var normalizeRoutePath = (path) => { | ||
const [pathname, ...rest] = path.split(/(\?|#)/); | ||
const [pathname, ...queryAndHash] = path.split(/(\?|#)/); | ||
if (!pathname || pathname.endsWith("/")) | ||
return path; | ||
const queryAndHash = rest.length > 0 ? rest.join("") : ""; | ||
let routePath = pathname.replace(/(^|\/)README.md$/i, "$1index.html"); | ||
@@ -94,5 +93,5 @@ if (routePath.endsWith(".md")) { | ||
if (routePath.endsWith("/index.html")) { | ||
return routePath.substring(0, routePath.length - 10) + queryAndHash; | ||
routePath = routePath.substring(0, routePath.length - 10); | ||
} | ||
return routePath + queryAndHash; | ||
return routePath + queryAndHash.join(""); | ||
}; | ||
@@ -99,0 +98,0 @@ |
{ | ||
"name": "@vuepress/shared", | ||
"version": "2.0.0-rc.6", | ||
"version": "2.0.0-rc.7", | ||
"description": "Utils that shared between VuePress node and client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14068
392