Sfoglia il codice sorgente

Correct stripNewline function

Damian Tarnawski 1 anno fa
parent
commit
ab2907cd51
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {