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 <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
message ..
message ..
add bar Z
-$(commit_msg "" "8" ".\+$")
+$(commit_msg "" "8" "..*$")
EOF
test_cmp expected actual
"
short long long long
message .. A U Thor
add bar A U Thor
-$(commit_msg "" "8" ".\+$") A U Thor
+$(commit_msg "" "8" "..*$") A U Thor
EOF
test_cmp expected actual
"