Skip to content

Commit 2b517f9

Browse files
msed: match header names case insensitively
Found by skarnet.
1 parent c4008e4 commit 2b517f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ sed(char *file)
138138
if (*s == ':')
139139
*s = '|';
140140
int rv;
141-
if ((rv = regcomp(&headerrx, headersel, REG_EXTENDED)) != 0) {
141+
if ((rv = regcomp(&headerrx, headersel, REG_EXTENDED | REG_ICASE)) != 0) {
142142
char buf[100];
143143
regerror(rv, &headerrx, buf, sizeof buf);
144144
fprintf(stderr, "msed: %s\n", buf);

0 commit comments

Comments
 (0)