From 0cbaff440dffafab29f9b83eb47dd73733a0df2f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 23 Oct 1996 17:53:06 +0000 Subject: [PATCH] Fix case where you start a new group immediately after a label. Thanks to Ka-Ping Yee. --- Modules/regexmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index 6f566c31f14..eb63f3788be 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -456,7 +456,7 @@ symcomp(pattern, gdict) *g++ = *o++; } } - if (*o == '[' && !escaped) { + else if (*o == '[' && !escaped) { *n++ = *o; ++o; /* eat the char following '[' */ *n++ = *o;