Skip to content

Fix line ending normalization#68

Open
tim-we wants to merge 1 commit intoleosingleton:masterfrom
tim-we:fix-line-ending-normalization
Open

Fix line ending normalization#68
tim-we wants to merge 1 commit intoleosingleton:masterfrom
tim-we:fix-line-ending-normalization

Conversation

@tim-we
Copy link

@tim-we tim-we commented Aug 26, 2022

I think in the method preprocessPass1 in minify.ts there is a bug:

output = output.replace('\r', '');

This code will only replace the first occurrence of \r so it won't do proper line ending normalization. This PR fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant