mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-02 05:01:58 +01:00
d697197a8b
`{1~20,30}` printed the placeholder as is, because the `,end` part was only
checked when the start index was inside the string. `{1~20}` printed nothing.
Parse and check the whole range first, so that a valid range that lies outside
of the string gives an empty result.