Commit 81a3ae3
committed
Don't treat
`%*d` / `%.*f` consume an extra `int` argument (the width/precision) that the
one-slot-per-specifier signature model can't represent, so the regex matched
them but undercounted — making `%d` and `%*d` compare as compatible. Concretely,
changing a base string from `%.1f km` to `%.*f km` shifts the call site from one
argument to two, yet the check would wave it through, so every unchanged
translation would render the precision where the value belongs.
Stop matching `*` in the width/precision, leaving such a specifier unrecognized:
a change to or from a `*` form now surfaces as a difference and gets flagged
rather than silently passing. Fixed width/precision/length specifiers are
unaffected.* dynamic width/precision as a fixed specifier1 parent d2e4bc3 commit 81a3ae3
2 files changed
Lines changed: 23 additions & 1 deletion
File tree
- lib/fastlane/plugin/wpmreleasetoolkit/helper
- spec
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
144 | 161 | | |
145 | 162 | | |
146 | 163 | | |
| |||
0 commit comments