Commit 8f9178f
committed
fix: fix the workflow warnings split on Windows (always split by "\n" as the string literals are always generating "/n" terminating lines based on the below-mentioned ES specification)
More details here: http://exploringjs.com/es6/ch_template-literals.html#_line-terminators-in-template-literals-are-always-lf-n
8.2.3 Line terminators in template literals are always LF (\n) #
Common ways of terminating lines are:
Line feed (LF, \n, U+000A): used by Unix (incl. current macOS)
Carriage return (CR, \r, U+000D): used by the old Mac OS.
CRLF (\r\n): used by Windows.
`All of these line terminators are normalized to LF in template literals.` That is, the following code logs true on all platforms:
const str = `BEFORE
AFTER`;
console.log(str === 'BEFORE\nAFTER'); // true1 parent 8b83f91 commit 8f9178f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
0 commit comments