Commit f463296
committed
ensure
When splitting `'foo\n\nbar'` by `\n`, you will get `['foo', '', 'bar']`.
The `''` value will result in `[]` after the word wrapping. This
information gets lost when we `flatMap`, so let's keep the newline using
`['']` as the fallback.\n\n are kept as \n\n
1 parent 3eaf53b commit f463296
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments