Handle Windows line endings like manifest-generator.js:175
This commit is contained in:
parent
decf15b5da
commit
f0ad64efc4
|
|
@ -369,7 +369,8 @@ class CodexSetup extends BaseIdeSetup {
|
||||||
}
|
}
|
||||||
|
|
||||||
async readAndProcessWithProject(filePath, metadata, projectDir) {
|
async readAndProcessWithProject(filePath, metadata, projectDir) {
|
||||||
const content = await fs.readFile(filePath, 'utf8');
|
const rawContent = await fs.readFile(filePath, 'utf8');
|
||||||
|
const content = rawContent.replaceAll('\r\n', '\n').replaceAll('\r', '\n');
|
||||||
return super.processContent(content, metadata, projectDir);
|
return super.processContent(content, metadata, projectDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue