소스 검색

Correct stripNewline function

Damian Tarnawski 1 년 전
부모
커밋
ab2907cd51
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {