Commit 148486b
refactor: improve binary suffix stripping
Use `strip_suffix()` which is clearer, shorter, and won't break if the suffix is in the middle of the filename (unlikely, but still). I also renamed `binary_prefix` to something clearer, since it isn't actually a prefix; it's the main part.1 parent 83d0901 commit 148486b
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
61 | 57 | | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
0 commit comments