mirror of
https://github.com/git/git.git
synced 2024-11-29 13:06:07 +08:00
Merge branch 'jc/mailinfo-RE'
We strip the prefix from "Re: subject" and also from a less common "re: subject", but left even less common "RE: subject" intact. * jc/mailinfo-RE: mailinfo: strip "RE: " prefix
This commit is contained in:
commit
cd14f3e17c
@ -232,7 +232,9 @@ static void cleanup_subject(struct strbuf *subject)
|
||||
case 'r': case 'R':
|
||||
if (subject->len <= at + 3)
|
||||
break;
|
||||
if (!memcmp(subject->buf + at + 1, "e:", 2)) {
|
||||
if ((subject->buf[at + 1] == 'e' ||
|
||||
subject->buf[at + 1] == 'E') &&
|
||||
subject->buf[at + 2] == ':') {
|
||||
strbuf_remove(subject, at, 3);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user