回答編集履歴
1
正規表現のフラグを修正
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
```javascript
|
16
16
|
|
17
|
-
const formatCRLF = s => s.replace(/\r?\n/, "\r\n");
|
17
|
+
const formatCRLF = s => s.replace(/\r?\n/g, "\r\n");
|
18
18
|
|
19
19
|
```
|
20
20
|
|