nazarlitvin / gulp-utm2html

Add UTM tags to URL in HTML file
1 stars 2 forks source link

Removing last characters in HTML files #5

Open danerich opened 6 years ago

danerich commented 6 years ago

I have an issue where the last two characters are missing at the end of the files. The end of the file is like this: </body></htm

I am not sure what would be causing this disabling the gulp-utm2html and the problem is resolved.

danerich commented 6 years ago

This looks like something to do with the buffer size.

Changing var buffer = new Buffer(data.length); to var buffer = new Buffer(data.length); in index.js looks to fix the problem.

nazarlitvin commented 6 years ago

@danerich, pull requests are welcome

danerich commented 6 years ago

Ok great, I have added #6