unformat

Removes valid formatting codes from a string.

pure nothrow @safe
string
unformat
(
string message
)

Examples

t {

	assert(unformat("§agreen") == "green");
	assert(unformat("res§ret") == "reset");
	assert(unformat("§xunsupported") == "§xunsupported");

	// consecutive
	assert(unformat("§§rr") == "")

Meta