Skip to content

Commit

Permalink
chore: remove eol fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Nov 23, 2022
1 parent a1405d2 commit bf70b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class Dotenv {
if (!file || !fs.existsSync(file)) return this;

// https://github.com/stevenvachon/edit-dotenv
const EOL = os.EOL ?? "\r\n";
const EOL = os.EOL;
const breakPattern = /\n/g;
const breakReplacement = "\\n";
const flags = "gm";
Expand Down

0 comments on commit bf70b4e

Please sign in to comment.