Commit 7c34c12
committed
refactor: simplify explode split since regex guarantees leading separator
The explode capture pattern ((?:SEP body)*?) means non-empty captures
always start with the separator, so split()[0] is always empty. The
defensive if-check was a dead branch; slice unconditionally instead.1 parent a8f488e commit 7c34c12
File tree
1 file changed
+5
-8
lines changed1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
533 | 530 | | |
534 | 531 | | |
535 | 532 | | |
| |||
0 commit comments