webpack-glsl-minify icon indicating copy to clipboard operation
webpack-glsl-minify copied to clipboard

Fix line ending normalization

Open tim-we opened this issue 3 years ago • 0 comments

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.

tim-we avatar Aug 26 '22 15:08 tim-we