Skip to content

Commit d4f020c

Browse files
committed
Remove line ending conversion from UTF-8 encoder
1 parent 941e132 commit d4f020c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Use gzipped version of the library by default. If you still need the uncompressed version, remove ".gz" from the script url in your integration snippet.
44
* Upgrade user agent parser for browser detection to keep up-to-date with browser updates.
55
* Fix bug where Android browsers were reported as Safari on Linux.
6+
* Fix bug with line endings in UTF-8 encoder that was causing issues with checksums.
67

78
## 2.1.0 (March 23, 2015)
89

src/utf8.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77
var UTF8 = {
88
encode: function (s) {
9-
s = s.replace(/\r\n/g,'\n');
109
var utftext = '';
1110

1211
for (var n = 0; n < s.length; n++) {

0 commit comments

Comments
 (0)