mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/build: fix templates with more than 1 _
This commit is contained in:
@ -63,7 +63,7 @@ function bundleHtml(config) {
|
|||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
templatesHtml += util.format(
|
templatesHtml += util.format(
|
||||||
'<template id=\'%s-template\'>%s</template>',
|
'<template id=\'%s-template\'>%s</template>',
|
||||||
path.basename(file, '.hbs').replace('_', '-'),
|
path.basename(file, '.hbs').replace(/_/g, '-'),
|
||||||
fs.readFileSync(file));
|
fs.readFileSync(file));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user