parent
b65df4bebf
commit
7648d56fc3
|
@ -340,7 +340,7 @@ private:
|
||||||
case '|': case ')':
|
case '|': case ')':
|
||||||
return {};
|
return {};
|
||||||
default:
|
default:
|
||||||
if (contains("^$.*+?[]{}", cp) or (cp >= 0xF0000 and cp <= 0xFFFFF))
|
if (contains(StringView{"^$.*+?[]{}"}, cp) or (cp >= 0xF0000 and cp <= 0xFFFFF))
|
||||||
parse_error(format("unexpected '{}'", cp));
|
parse_error(format("unexpected '{}'", cp));
|
||||||
++m_pos;
|
++m_pos;
|
||||||
return add_node(ParsedRegex::Literal, cp);
|
return add_node(ParsedRegex::Literal, cp);
|
||||||
|
|
1
test/regression/4460-nul-byte-in-regex/cmd
Normal file
1
test/regression/4460-nul-byte-in-regex/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*%s<ret>d
|
BIN
test/regression/4460-nul-byte-in-regex/in
Normal file
BIN
test/regression/4460-nul-byte-in-regex/in
Normal file
Binary file not shown.
1
test/regression/4460-nul-byte-in-regex/out
Normal file
1
test/regression/4460-nul-byte-in-regex/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user