Skip to content

Commit 1881132

Browse files
committed
up
1 parent c1975fc commit 1881132

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/style/LiteStyle.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,13 @@ public static function render($text, $style = self::NORMAL)
103103
return $result;
104104
}
105105

106+
/**
107+
* @param string $text
108+
* @return string
109+
*/
110+
public static function clear($text)
111+
{
112+
// return preg_replace('/\033\[(?:\d;?)+m/', '' , "\033[0;36mtext\033[0m");
113+
return preg_replace('/\033\[(?:\d;?)+m/', '', $text);
114+
}
106115
}

0 commit comments

Comments
 (0)