未验证 提交 9d4891f2 编写于 作者: T Tim Neutkens 提交者: GitHub

Check if matched before reading value (#4096)

上级 2fa49d70
......@@ -13,7 +13,12 @@ export default class PagesManifestPlugin {
const pages = {}
for (const entry of entries) {
const pagePath = MATCH_ROUTE_NAME.exec(entry.name)[1]
const result = MATCH_ROUTE_NAME.exec(entry.name)
if (!result) {
continue
}
const pagePath = result[1]
if (!pagePath) {
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册