Explorar o código

Correct stripNewline function

Damian Tarnawski hai 1 ano
pai
achega
ab2907cd51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
-    return str.replace(/\n$/, ' ')
+    return str.replace(/\n/, ' ')
 }
 
 class WasmMemoryInterface {