From 56bd94803ebb1f43b7b593b62be224e2fe9ac909 Mon Sep 17 00:00:00 2001 From: Ed Beroset Date: Tue, 26 Dec 2023 09:40:20 -0500 Subject: [PATCH] Relax requirement for C++ language tags There may be some questions that are tagged with C++17 or C++20 but not C++. This modifies the regex to look for tags that start with 'c++' but might be 'c++17' or 'c++'. Signed-off-by: Ed Beroset --- src/AutoProject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoProject.cpp b/src/AutoProject.cpp index d427baf..b300a2a 100644 --- a/src/AutoProject.cpp +++ b/src/AutoProject.cpp @@ -265,7 +265,7 @@ void AutoProject::checkRules(const std::string &line) { void AutoProject::checkLanguageTags(const std::string& line) { if (!thislang.empty()) return; - static const std::regex tagcpp{"### tags: \\[.*'c\\+\\+'.*\\]"}; + static const std::regex tagcpp{"### tags: \\[.*'c\\+\\+.*\\]"}; static const std::regex tagc{"### tags: \\[.*'c'.*\\]"}; static const std::regex tagasm{"### tags: \\[.*'assembly'.*\\]"}; std::smatch pieces;