Explorar el Código

Correct stripNewline function

Damian Tarnawski hace 1 año
padre
commit
ab2907cd51
Se han modificado 1 ficheros con 1 adiciones y 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 {