diff options
| author | Fuwn <[email protected]> | 2022-05-09 09:45:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-09 09:45:39 +0000 |
| commit | be1612801a46fd19a10034f3fdcda5d731b0587c (patch) | |
| tree | 566d104c504390f8ed39eb59dea36151d54873b4 /maple | |
| parent | refactor(maple): move ssl work to function (diff) | |
| parent | fix(build): c++20 instead of c++23 wd (diff) | |
| download | archived-maple-be1612801a46fd19a10034f3fdcda5d731b0587c.tar.xz archived-maple-be1612801a46fd19a10034f3fdcda5d731b0587c.zip | |
Merge branch 'main' of https://github.com/gemrest/maple
Diffstat (limited to 'maple')
| -rw-r--r-- | maple/maple.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/maple/maple.cc b/maple/maple.cc index c76118a..ed434ab 100644 --- a/maple/maple.cc +++ b/maple/maple.cc @@ -56,16 +56,14 @@ auto main() -> int { std::string file_extension = entry.path().string().substr( entry.path().string().find_last_of('.') + 1 ); - std::string gemini_file_extension = "gmi"; // Only keep track of file if it is a Gemini file if (std::equal( file_extension.begin(), file_extension.end(), - gemini_file_extension.begin(), - gemini_file_extension.end(), - [](auto a, auto b) -> bool {return std::tolower(a) == std::tolower(b); - } + std::string("gmi").begin(), + std::string("gmi").end(), + [](char a, char b) -> bool { return std::tolower(a) == std::tolower(b); } )) { gemini_files.push_back(entry.path()); } |