Optimize regex in command

This commit is contained in:
Maxime Coste 2019-12-05 21:11:12 +11:00
parent 1ec14ea826
commit 023a65eeac

View File

@ -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]));