Commit a6c9816
committed
Keep symbol-led specs out of the trimmed-prefix path
camdecoster pointed out that folding $/# into the prefix group broke
symbol-led specs: "$f" became "$~f", an invalid spec, and stripping the
symbol before the trim check meant "$1.500000" would come out as "$1.5"
once the tilde got added. Only sign flags (+, -, (, space) belong in the
stripped prefix; symbol-led specs now fall straight through to the
untrimmed return, matching the existing hex/octal/binary "#" cases.
Added test coverage for $f/#f/$s, reworded the draftlog line to
"improperly handling" since it's not strictly a silent drop anymore.1 parent 95dc3ad commit a6c9816
3 files changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments