Skip to content

Commit 0426405

Browse files
fix: bug with unicode characters (#196)
1 parent 5ecf7da commit 0426405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/hash/wasm-hash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class WasmHash {
8282
endPos += 2;
8383
} else {
8484
// bail-out for weird chars
85-
endPos += mem.write(data.slice(endPos), endPos, encoding);
85+
endPos += mem.write(data.slice(i), endPos, encoding);
8686
break;
8787
}
8888
}

0 commit comments

Comments
 (0)