Commit a7432ae
committed
parser: Avoid slicing when parsing bracketed paste
This is not a real bug or issue. I'm just modifying the parser for
bracketed paste to avoid indexing into the input buffer. strip_prefix
and strip_suffix are, if anything, more ergonomic for this exact same
use-case. These additional test cases passed before and after the
change.1 parent c04c2c7 commit a7432ae
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
889 | 891 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
| 892 | + | |
| 893 | + | |
894 | 894 | | |
| 895 | + | |
| 896 | + | |
895 | 897 | | |
896 | 898 | | |
897 | 899 | | |
| |||
1323 | 1325 | | |
1324 | 1326 | | |
1325 | 1327 | | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1326 | 1339 | | |
0 commit comments