add linux path support
All checks were successful
Build and Release / build-and-release (push) Successful in 30s
All checks were successful
Build and Release / build-and-release (push) Successful in 30s
This commit is contained in:
@@ -14,7 +14,7 @@ function build() {
|
||||
const mountedFiles = new Set();
|
||||
|
||||
const result = data.replace(mountRegex, (_match, file) => {
|
||||
let fileContent = fs.readFileSync(path.normalize(file), "utf8");
|
||||
let fileContent = fs.readFileSync(file.replace(/\\/g, "/"), "utf8");
|
||||
mountedFiles.add(path.resolve(file));
|
||||
|
||||
const inlinePhpVarRegex = /"<<BUILDER_PHP_VAR\((?<varName>.*?)\)>>"/g;
|
||||
|
||||
Reference in New Issue
Block a user