projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove invalid code from TRE
[musl]
/
src
/
regex
/
regcomp.c
diff --git
a/src/regex/regcomp.c
b/src/regex/regcomp.c
index
8987f5a
..
f8ebe40
100644
(file)
--- a/
src/regex/regcomp.c
+++ b/
src/regex/regcomp.c
@@
-1105,20
+1105,6
@@
tre_parse(tre_parse_ctx_t *ctx)
if (*ctx->re == CHAR_QUESTIONMARK)
rep_max = 1;
if (*ctx->re == CHAR_QUESTIONMARK)
rep_max = 1;
- {
- if (*(ctx->re + 1) == CHAR_QUESTIONMARK)
- {
- minimal = 1;
- ctx->re++;
- }
- else if (*(ctx->re + 1) == CHAR_STAR
- || *(ctx->re + 1) == CHAR_PLUS)
- {
- /* These are reserved for future extensions. */
- return REG_BADRPT;
- }
- }
-
ctx->re++;
tmp_node = tre_ast_new_iter(ctx->mem, result, rep_min, rep_max,
minimal);
ctx->re++;
tmp_node = tre_ast_new_iter(ctx->mem, result, rep_min, rep_max,
minimal);