diff options
-rw-r--r-- | generic/regc_lex.c | 2 | ||||
-rw-r--r-- | tests/reg.test | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/generic/regc_lex.c b/generic/regc_lex.c index ec43497..d96d22f 100644 --- a/generic/regc_lex.c +++ b/generic/regc_lex.c @@ -427,7 +427,7 @@ next( if (INCON(L_BBND) && NEXT1('}')) { v->now++; INTOCON(L_BRE); - RET('}'); + RETV('}', 1); } else { FAILW(REG_BADBR); } diff --git a/tests/reg.test b/tests/reg.test index 063b091..34edc97 100644 --- a/tests/reg.test +++ b/tests/reg.test @@ -1220,6 +1220,10 @@ test reg-33.29 {} { test reg-33.30 {Bug 1080042} { regexp {(\Y)+} foo } 1 +test reg-33.31 {Bug 7c64aa5e1a} { + regexp -inline {(?b).\{1,10\}} {abcdef} +} abcdef + # cleanup ::tcltest::cleanupTests |