Optimize regex in command
This commit is contained in:
parent
1ec14ea826
commit
023a65eeac
|
@ -1396,7 +1396,7 @@ const CommandDesc debug_cmd = {
|
||||||
throw runtime_error("expected a regex");
|
throw runtime_error("expected a regex");
|
||||||
|
|
||||||
write_to_debug_buffer(format(" * {}:\n{}",
|
write_to_debug_buffer(format(" * {}:\n{}",
|
||||||
parser[1], dump_regex(compile_regex(parser[1], RegexCompileFlags::None))));
|
parser[1], dump_regex(compile_regex(parser[1], RegexCompileFlags::Optimize))));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw runtime_error(format("no such debug command: '{}'", parser[0]));
|
throw runtime_error(format("no such debug command: '{}'", parser[0]));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user