From 7d19cefd830514436b65ece4a4e1bbd78cc0aa2a Mon Sep 17 00:00:00 2001 From: Jeff Bezos Date: Wed, 23 Oct 2024 09:18:54 +0000 Subject: [PATCH] made it remove the # --- src/utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index b3c5f5a..38cab23 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -126,7 +126,10 @@ std::vector readLocaleGenFile(const std::string& filePath) { } while (std::getline(file, line)) { - if (!line.empty() && line[0] == '#' && line.length() > 1 && line[1] != ' ') { + if (!line.empty() && line[0] == '#') { + line.erase(0, 1); + } + if (!line.empty()) { lines.push_back(line); } }