提交 17361482 编写于 作者: R Rich Felker

fix copy and paste error in regex code causing mishandling of \) in BRE

上级 a5a47783
......@@ -1186,7 +1186,7 @@ tre_parse(tre_parse_ctx_t *ctx)
ctx->re++;
goto lparen;
}
if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_LPAREN)
if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_RPAREN)
{
goto empty_atom;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册