diff --git a/backend/src/lexer.cpp b/backend/src/lexer.cpp index ce7021c..8fed0b8 100644 --- a/backend/src/lexer.cpp +++ b/backend/src/lexer.cpp @@ -211,7 +211,7 @@ bool CommandShowLexer(const std::string &command, std::string &ISBN, std::string &name, std::string &author, std::string &keyword) { static std::basic_regex main_pattern( - R"(^ *show(?: +-ISBN=(?:\S{1,20})| +-name=\"(?:[^\s"]{1,60})\"| +-author=\"(?:[^\s"]{1,60})\"| +-keyword=\"(?:[^\s"]{1,60})\")? *$)", + R"(^ *show(?: +-ISBN=(?:[!-~]{1,20})| +-name=\"(?:[!#-~]{1,60})\"| +-author=\"(?:[!#-~]{1,60})\"| +-keyword=\"(?:[!#-{}~]{1,60})\")? *$)", std::regex_constants::optimize); bool has_ISBN = false;