mirror of
https://github.com/fluencelabs/musl
synced 2025-06-27 05:32:06 +00:00
fix copy and paste error in regex code causing mishandling of \) in BRE
This commit is contained in:
@ -1186,7 +1186,7 @@ tre_parse(tre_parse_ctx_t *ctx)
|
|||||||
ctx->re++;
|
ctx->re++;
|
||||||
goto lparen;
|
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;
|
goto empty_atom;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user