Match leading ^ in regexp with embedded newlines (Roger Peppe)
This commit is contained in:
parent
d91ab9ea7b
commit
da7f7882a2
2 changed files with 10 additions and 11 deletions
|
|
@ -58,7 +58,7 @@ regexec1(Reprog *progp, /* program to run */
|
|||
p = utfrune(s, '\n');
|
||||
if(p == 0 || s == j->eol)
|
||||
return match;
|
||||
s = p;
|
||||
s = p+1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue