]> git.ipfire.org Git - thirdparty/systemd.git/commit
string-util: accept ":" when stripping ANSI color sequences 40366/head
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Jan 2026 21:29:40 +0000 (22:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 17 Jan 2026 11:07:36 +0000 (12:07 +0100)
commite09b5366e57cbe06c32a7607236e1383a2e4d533
tree34f8b509fa9800cd6cece5200cb1cbf717e65dc1
parent24c315e9113b85c498915b37b2363308c340492e
string-util: accept ":" when stripping ANSI color sequences

Since 6eabe9f2ff48c1b6924724d5afe64e7b661ccdbf we generate sequences
with ":", hence we better also know how to strip them.

(Without this patch we'd strip simple ANSI colors, but not RGB ones that
use ":" syntax).

(While we are at it, also drop a duplicate "0" in the list of valid
chars)
src/basic/string-util.c