Skip to content

Commit cdee772

Browse files
committed
fix: v1.11.1 - 修复一些node版本不支持可选链操作符问题
1 parent 755e302 commit cdee772

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"vuepress-plugin-one-click-copy": "^1.0.2",
2525
"vuepress-plugin-thirdparty-search": "^1.0.2",
2626
"vuepress-plugin-zooming": "^1.1.7",
27-
"vuepress-theme-vdoing": "^1.11.0",
27+
"vuepress-theme-vdoing": "^1.11.1",
2828
"yamljs": "^0.3.0"
2929
}
3030
}

vdoing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-vdoing",
3-
"version": "1.11.0",
3+
"version": "1.11.1",
44
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
55
"author": {
66
"name": "gaoyi(Evan) Xu"

vdoing/util/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function normalize(path) {
1010
}
1111

1212
export function getHash(path) {
13-
const match = path?.match(hashRE)
13+
const match = path ? path.match(hashRE) : ''
1414
if (match) {
1515
return match[0]
1616
}

0 commit comments

Comments
 (0)