Skip to content

Commit a1c588f

Browse files
author
Sparky
authored
Allow more whitespace
1 parent 02575b7 commit a1c588f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/whitelist.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int parseWhitelist()
2626
std::stringstream filereader;
2727
filereader << input.rdbuf();
2828
std::string filedata = filereader.str();
29-
std::regex line_parser("[ \t]*([\\w\\.-]+)\\:(\\d+)(?:(?:\r?\n)+|$)");
29+
std::regex line_parser("[ \t]*([\\w\\.-]+)\\:(\\d+)(?:(?:[ \t]*\r?\n)+|[ \t]*$)");
3030
for (std::regex_iterator<std::string::iterator> match = std::regex_iterator(filedata.begin(), filedata.end(), line_parser), end = std::regex_iterator<std::string::iterator>(); match != end; ++match)
3131
{
3232
whitelist[match->operator[](1).str()].insert(match->operator[](2).str());

0 commit comments

Comments
 (0)