Skip to content

Commit

Permalink
fix: windows \r breaking regex
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Nov 1, 2023
1 parent 63f158a commit 1bfa3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class Executor {
);
return {};
}
const content = fs.readFileSync(file, "utf-8");
const content = fs.readFileSync(file, "utf-8").replaceAll("\r", "");

// remove comments and blank lines
const lines = content.split("\n").filter((line) => {
Expand Down

0 comments on commit 1bfa3e1

Please sign in to comment.