From ed56a62799005a9f644827c7590f59a867d65072 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 13 Jun 2015 21:36:57 -0600 Subject: [PATCH] fix typo-related bug --- bower.json | 2 +- index.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index 8cb1045..6ccf408 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "unibabel", "main": "index.js", - "version": "2.0.0", + "version": "2.0.1", "homepage": "https://github.com/coolaj86/unibabel-js", "authors": [ "AJ ONeal " diff --git a/index.js b/index.js index bba7391..d1275e6 100644 --- a/index.js +++ b/index.js @@ -36,9 +36,7 @@ function binaryStringToUtf8(binstr) { } function bufferToUtf8(buf) { - var binstr = Array.prototype.map.call(buf, function (ch) { - return '0x' + String.fromCharCode(ch); - }).join(''); + var binstr = bufferToBinaryString(buf); return binaryStringToUtf8(binstr); }