提交 952700e8 编写于 作者: R Rich Felker

fix error checking for \ at end of regex (this was broken previously)

上级 17361482
......@@ -1210,7 +1210,7 @@ tre_parse(tre_parse_ctx_t *ctx)
}
}
if (!*ctx->re)
if (!ctx->re[1])
/* Trailing backslash. */
return REG_EESCAPE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册