diff --git a/vendor/wasm/js/runtime.js b/vendor/wasm/js/runtime.js index 2a5b27950..fe902f2f5 100644 --- a/vendor/wasm/js/runtime.js +++ b/vendor/wasm/js/runtime.js @@ -10,7 +10,7 @@ function getElement(name) { } function stripNewline(str) { - return str.replace(/\n$/, ' ') + return str.replace(/\n/, ' ') } class WasmMemoryInterface {