Explorar o código

Pre-warm the regex engine for configure deck.

Steve Thielemann %!s(int64=3) %!d(string=hai) anos
pai
achega
c5cf228cda
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      main.cpp

+ 3 - 0
main.cpp

@@ -53,6 +53,9 @@ int opt_from_string(std::string colorCode) {
 }
 
 int configure(door::Door &door, DBData &db) {
+  // pre-warm the parser
+  find_words(std::string(""));
+
   auto menu = make_config_menu();
   int r = 0;
   bool save_deckcolor = false;