Unverified Commit 9d4891f2 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Check if matched before reading value (#4096)

parent 2fa49d70
...@@ -13,7 +13,12 @@ export default class PagesManifestPlugin { ...@@ -13,7 +13,12 @@ export default class PagesManifestPlugin {
const pages = {} const pages = {}
for (const entry of entries) { 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) { if (!pagePath) {
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment