Skip to content

Commit

Permalink
fix: windows flag generation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed May 4, 2023
1 parent 82ae9db commit d0ddbb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export class FlagBuilder {
}

public async apply(flagParts: string[]): Promise<string> {
// const lines = (await this.readFile()).replace(/\r\n/g, '\n').split('\n');
const lines = (await this.readFile()).split(os.EOL);
const lines = (await this.readFile()).replace(/\r\n/g, '\n').split('\n');

const flagsStartIndex = lines.findIndex(
(line) => line.includes('public static flags') || line.includes('public static readonly flags')
Expand Down

0 comments on commit d0ddbb3

Please sign in to comment.