Skip to content

Commit c1e9e0d

Browse files
committed
fix: warp color tag check 0 as empty
1 parent 2655807 commit c1e9e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Color/ColorTag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function add(string $text, string $tag): string
8888
*/
8989
public static function wrap(string $text, string $tag): string
9090
{
91-
if (!$text || !$tag) {
91+
if ($text === '' || !$tag) {
9292
return $text;
9393
}
9494

0 commit comments

Comments
 (0)