Minor changes
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
//Perform static includes
|
||||
for (const match of [...code.match(/(?<=`)<#include (.+?)>(?=`)/g)]) {
|
||||
const file = match.match(/<#include (.+?)>/)[1]
|
||||
code = code.replace(`<#include ${file}>`, `${await fs.promises.readFile(path.join(__dirname, "..", "src", file))}`.replace(/([$`])/g, "\\$1"))
|
||||
code = code.replace(`<#include ${file}>`, `${await fs.promises.readFile(path.join(__dirname, "..", "src", file))}`.replace(/([$`\\])/g, "\\$1"))
|
||||
console.log(`Included ${file}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user