Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.
This commit is contained in:
parent
2971ef1730
commit
e01f9662a5
@ -212,7 +212,8 @@ static int get_address(char *delimiter, char *my_str, int *linenum, regex_t **re
|
||||
|
||||
static int parse_subst_cmd(sed_cmd_t * const sed_cmd, const char *substr)
|
||||
{
|
||||
int oldidx, cflags = REG_NEWLINE;
|
||||
int oldidx;
|
||||
int cflags = 0;
|
||||
char *match;
|
||||
int idx = 0;
|
||||
int j;
|
||||
|
Loading…
Reference in New Issue
Block a user