Skip to content

Commit

Permalink
made it remove the #
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Bezos committed Oct 23, 2024
1 parent 823faa2 commit 7d19cef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ std::vector<std::string> 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);
}
}
Expand Down

0 comments on commit 7d19cef

Please sign in to comment.