build fix

This commit is contained in:
Matthias Kretschmann 2020-11-22 00:25:43 +01:00
parent 660faceaf9
commit fdd57b22b6
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ exports.onCreatePage = async ({ page, actions }) => {
// Regex for auto-attaching project images to pages based on slug.
// Image file names follow the pattern slug-01.png.
// Regex inspiration from https://stackoverflow.com/a/7124976
const imageRegex = `/${page.path.replaceAll('/', '')}+?(?=-\\d)/`
const imageRegex = `/${page.path.replace(/\//g, '')}+?(?=-\\d)/`
deletePage(page)
createPage({