fix escaping regex in HTML export (#13)
This commit is contained in:
parent
c7f14ecb3a
commit
c86b82bd0c
@ -78,7 +78,7 @@ class ExportController extends Controller {
|
|||||||
flat_tree.push({
|
flat_tree.push({
|
||||||
level,
|
level,
|
||||||
page,
|
page,
|
||||||
file_name: `${page.Name.replace(/\s/g, '-').replace(/\/\\/g, '-')}-${page.UUID}.html`,
|
file_name: `${page.Name.replace(/\s/g, '-').replace(/[\/\\]/g, '-')}-${page.UUID}.html`,
|
||||||
})
|
})
|
||||||
|
|
||||||
const children = await page.childPages
|
const children = await page.childPages
|
||||||
|
Loading…
Reference in New Issue
Block a user