Skip to content

Commit bcb11eb

Browse files
Expand the ANSI regexp to detect 6 "octets"
Needed for zebra coloring
1 parent 86631e7 commit bcb11eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-so-fancy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ my $use_unicode_dash_for_ruler = git_config_boolean("diff-so-fancy.useUnicodeRul
2525
my $git_strip_prefix = git_config_boolean("diff.noprefix","false");
2626
my $has_stdin = has_stdin();
2727

28-
my $ansi_color_regex = qr/(\e\[([0-9]{1,3}(;[0-9]{1,3}){0,4})[mK])?/;
28+
my $ansi_color_regex = qr/(\e\[([0-9]{1,3}(;[0-9]{1,3}){0,6})[mK])?/;
2929
my $reset_color = color("reset");
3030
my $bold = color("bold");
3131
my $meta_color = "";

0 commit comments

Comments
 (0)