Skip to content

Commit

Permalink
Merge pull request #52 from raulsntos/fix-new-lines
Browse files Browse the repository at this point in the history
Support metadata file with Windows new lines
  • Loading branch information
neikeq authored Aug 24, 2022
2 parents ee5666d + a82adf7 commit 5cb26cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/godot-tools-messaging/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class Client implements Disposable {
readMetadataFile(): GodotIdeMetadata | undefined {
const buffer = fs.readFileSync(this.metaFilePath);
const metaFileContent = buffer.toString('utf-8');
const lines = metaFileContent.split('\n');
const lines = metaFileContent.replace('\r\n', '\n').split('\n');

if (lines.length < 2) {
return undefined;
Expand Down

0 comments on commit 5cb26cc

Please sign in to comment.