Match leading ^ in regexp with embedded newlines (Roger Peppe)

This commit is contained in:
rsc 2007-05-18 16:43:43 +00:00
parent d91ab9ea7b
commit da7f7882a2
2 changed files with 10 additions and 11 deletions

View file

@ -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;
}
}