Skip to content

Commit 0d290a4

Browse files
avargitster
authored andcommitted
send-email: use \E***\Q instead of \*\*\*
Change the regex introduced in a03bc5b to use the \E...\Q escape syntax instead of using backslashes. It's more readable like this, and easier to grep for. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]: Avery Pennarun <[email protected]> Reviewed-by: Jeff King <[email protected]> > Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4bf597e commit 0d290a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ sub file_declares_8bit_cte {
705705

706706
if (!$force) {
707707
for my $f (@files) {
708-
if (get_patch_subject($f) =~ /\*\*\* SUBJECT HERE \*\*\*/) {
708+
if (get_patch_subject($f) =~ /\Q*** SUBJECT HERE ***\E/) {
709709
die "Refusing to send because the patch\n\t$f\n"
710710
. "has the template subject '*** SUBJECT HERE ***'. "
711711
. "Pass --force if you really want to send.\n";

0 commit comments

Comments
 (0)