fix: v1.11.1 - 修复一些node版本不支持可选链操作符问题
This commit is contained in:
parent
755e30211c
commit
cdee77264d
|
|
@ -24,7 +24,7 @@
|
||||||
"vuepress-plugin-one-click-copy": "^1.0.2",
|
"vuepress-plugin-one-click-copy": "^1.0.2",
|
||||||
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
||||||
"vuepress-plugin-zooming": "^1.1.7",
|
"vuepress-plugin-zooming": "^1.1.7",
|
||||||
"vuepress-theme-vdoing": "^1.11.0",
|
"vuepress-theme-vdoing": "^1.11.1",
|
||||||
"yamljs": "^0.3.0"
|
"yamljs": "^0.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vuepress-theme-vdoing",
|
"name": "vuepress-theme-vdoing",
|
||||||
"version": "1.11.0",
|
"version": "1.11.1",
|
||||||
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "gaoyi(Evan) Xu"
|
"name": "gaoyi(Evan) Xu"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export function normalize(path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getHash(path) {
|
export function getHash(path) {
|
||||||
const match = path?.match(hashRE)
|
const match = path ? path.match(hashRE) : ''
|
||||||
if (match) {
|
if (match) {
|
||||||
return match[0]
|
return match[0]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue