Browse Source

Correct stripNewline function

Damian Tarnawski 1 year ago
parent
commit
ab2907cd51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vendor/wasm/js/runtime.js

+ 1 - 1
vendor/wasm/js/runtime.js

@@ -10,7 +10,7 @@ function getElement(name) {
 }
 }
 
 
 function stripNewline(str) {
 function stripNewline(str) {
-    return str.replace(/\n$/, ' ')
+    return str.replace(/\n/, ' ')
 }
 }
 
 
 class WasmMemoryInterface {
 class WasmMemoryInterface {