mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 08:15:24 +00:00
Remove ANSI colors from console output.
This commit is contained in:
1 parent
18e98aaf52
commit
332a0b9e04
2 files changed
+4
-1
No files matched your search
@@ -501,3 +501,6 @@ function generateDeployWebhook($resource) {
|
||||
$url = $api . $endpoint . "?uuid=$uuid&force=false";
|
||||
return $url;
|
||||
}
|
||||
function removeAnsiColors($text) {
|
||||
return preg_replace('/\e[[][A-Za-z0-9];?[0-9]*m?/', '', $text);
|
||||
}
|
||||
Reference in new issue
Block a user