Kaydet (Commit) fc4f5037 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix showstopping bug (^ wouldn't match after \n). Jeffrey Ollie.

üst 34570d76
......@@ -1914,7 +1914,7 @@ int re_search(regexp_t bufp,
}
if (anchor == 1)
{ /* anchored to begline */
if (pos > 0 && string[pos - 1])
if (pos > 0 && (string[pos - 1] != '\n'))
continue;
}
assert(pos >= 0 && pos <= size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment