From 04264056f951514955af7302510631f942276eec Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Thu, 4 Nov 2021 17:45:35 +0300 Subject: [PATCH] fix: bug with unicode characters (#196) --- lib/hash/wasm-hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hash/wasm-hash.js b/lib/hash/wasm-hash.js index 68c64ad..bbe999a 100644 --- a/lib/hash/wasm-hash.js +++ b/lib/hash/wasm-hash.js @@ -82,7 +82,7 @@ class WasmHash { endPos += 2; } else { // bail-out for weird chars - endPos += mem.write(data.slice(endPos), endPos, encoding); + endPos += mem.write(data.slice(i), endPos, encoding); break; } }