Skip to content

Commit 301f20e

Browse files
Match ANSI escape sequences with no numbers. (Fix #469?)
1 parent 5f3ce1d commit 301f20e

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
@@ -28,7 +28,7 @@ my $git_strip_prefix = git_config_boolean("diff.noprefix","false");
2828
my $has_stdin = has_stdin();
2929
my $CONTEXT_LINES = undef; # Number of lines of context diff used
3030

31-
my $ansi_regex = qr/\e\[([0-9]{1,3}(;[0-9]{1,3}){0,10})[mK]/;
31+
my $ansi_regex = qr/\e\[([0-9]{0,3}(;[0-9]{1,3}){0,10})[mK]/;
3232
my $ansi_color_regex = qr/(${ansi_regex})?/;
3333
my $reset_color = color("reset");
3434
my $bold = color("bold");

0 commit comments

Comments
 (0)