Commit f8df5c1
committed
Fix opening files with different carriage returns
We compared the code of prev/next module by a simple ===, which
didn't work if the carriage returns were different. We now normalize
the carriage returns before comparing.
Fixes codesandbox#7261 parent 7e03c8e commit f8df5c1
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| 374 | + | |
| 375 | + | |
374 | 376 | | |
375 | 377 | | |
376 | 378 | | |
| |||
1180 | 1182 | | |
1181 | 1183 | | |
1182 | 1184 | | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1187 | 1192 | | |
1188 | 1193 | | |
1189 | 1194 | | |
| |||
1494 | 1499 | | |
1495 | 1500 | | |
1496 | 1501 | | |
1497 | | - | |
1498 | 1502 | | |
1499 | 1503 | | |
1500 | 1504 | | |
| |||
0 commit comments