Skip to content

Commit 7c37521

Browse files
Benabikgitster
authored andcommitted
t4205: replace .\+ with ..* in sed commands
OS X's sed only accepts basic regular expressions, which does not allow the + quantifier. However '..*' (anything, followed by zero or more anything) is the same as '.\+' (one or more anything) and valid in any regular expression language. Signed-off-by: Brian Gernhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ecaee80 commit 7c37521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ test_expect_success 'left alignment formatting with trunc' "
192192
message ..
193193
message ..
194194
add bar Z
195-
$(commit_msg "" "8" ".\+$")
195+
$(commit_msg "" "8" "..*$")
196196
EOF
197197
test_cmp expected actual
198198
"
@@ -310,7 +310,7 @@ test_expect_success 'left/right alignment formatting with stealing' "
310310
short long long long
311311
message .. A U Thor
312312
add bar A U Thor
313-
$(commit_msg "" "8" ".\+$") A U Thor
313+
$(commit_msg "" "8" "..*$") A U Thor
314314
EOF
315315
test_cmp expected actual
316316
"

0 commit comments

Comments
 (0)