Skip to content

Commit 24f8924

Browse files
Potential fix for #360 (files names with spaces)
1 parent 8f39d54 commit 24f8924

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
@@ -165,7 +165,7 @@ sub do_dsf_stuff {
165165
# Look for the filename #
166166
#########################
167167
# $4 $5
168-
} elsif ($line =~ /^${ansi_color_regex}diff (-r|--git|--cc) (.+?)(\s|\e|$)/) {
168+
} elsif ($line =~ /^${ansi_color_regex}diff (-r|--git|--cc) (.*?)(\e| b\/|$)/) {
169169

170170
# Mercurial looks like: diff -r 82e55d328c8c hello.c
171171
if ($4 eq "-r") {

0 commit comments

Comments
 (0)