From f0f524dde17e93ca0c9c6e3a02cafe89b5638d8e Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Thu, 14 Dec 2023 07:18:41 +0000 Subject: [PATCH] =?UTF-8?q?=E7=BB=99show=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/lexer.cpp b/backend/src/lexer.cpp index cab8ca1..8980500 100644 --- a/backend/src/lexer.cpp +++ b/backend/src/lexer.cpp @@ -212,7 +212,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=(?:\S{1,20})| +-name=\"(?:[^\s"]{1,60})\"| +-author=\"(?:[^\s"]{1,60})\"| +-keyword=\"(?:[^\s"]{1,60})\")? *$)", std::regex_constants::optimize); bool has_ISBN = false;