regex_impl: Fix a potential format string flaw
This commit is contained in:
parent
8438b33175
commit
9bac04d35f
|
@ -1138,7 +1138,7 @@ struct TestVM : CompiledRegex, ThreadedRegexVM<const char*, dir>
|
|||
: CompiledRegex{compile_regex(re, dir == MatchDirection::Forward ?
|
||||
RegexCompileFlags::None : RegexCompileFlags::Backward)},
|
||||
VMType{(const CompiledRegex&)*this}
|
||||
{ if (dump) printf(dump_regex(*this).c_str()); }
|
||||
{ if (dump) puts(dump_regex(*this).c_str()); }
|
||||
|
||||
bool exec(StringView re, RegexExecFlags flags = RegexExecFlags::AnyMatch)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user