BREAKING(fmt): remove stripColor (#5374)

This commit is contained in:
Asher Gomez 2024-07-10 14:49:54 +10:00 committed by GitHub
parent 0a8a3387c6
commit d32a8c9c34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -979,25 +979,6 @@ const ANSI_PATTERN = new RegExp(
"g",
);
/**
* Remove ANSI escape codes from the string.
*
* @example Usage
* ```ts no-assert
* import { stripColor, red } from "@std/fmt/colors";
*
* console.log(stripColor(red("Hello, world!")));
* ```
*
* @param string The text to remove ANSI escape codes from
* @returns The text without ANSI escape codes
*
* @deprecated This will be removed in 1.0.0. Use {@linkcode stripAnsiCode} instead.
*/
export function stripColor(string: string): string {
return stripAnsiCode(string);
}
/**
* Remove ANSI escape codes from the string.
*