commit | fc4f503762cddab450a2c30bbf5fee3039f92c2e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed May 14 18:27:51 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed May 14 18:27:51 1997 +0000 |
tree | 8ef145f8706628f57e45e6da23fe18a16118359f | |
parent | 34570d7669744c69d2b03918b88af8cd9f5b8392 [diff] [blame] |
Fix showstopping bug (^ wouldn't match after \n). Jeffrey Ollie.
diff --git a/Modules/regexpr.c b/Modules/regexpr.c index 90bff87..87f747f 100644 --- a/Modules/regexpr.c +++ b/Modules/regexpr.c
@@ -1914,7 +1914,7 @@ } 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);