From 849689dd4a119f5ce9182f083f048a90bb4fc980 Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Tue, 13 Dec 2016 22:26:22 +0900 Subject: [PATCH] [0-9-a] was not allowed as [0-9\-a] This was originally fixed by Ruby r37175. --- src/regparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regparse.c b/src/regparse.c index 5e31f36..7e923df 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -4340,7 +4340,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end, if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC)) { CC_ESC_WARN(env, (UChar* )"-"); - goto any_char_in; /* [0-9-a] is allowed as [0-9\-a] */ + goto range_end_val; /* [0-9-a] is allowed as [0-9\-a] */ } r = ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS; goto err; -- 2.40.0