Skip to content

Commit

Permalink
Relax requirement for C++ language tags
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
beroset committed Dec 26, 2023
1 parent 78d356e commit 56bd948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 56bd948

Please sign in to comment.