Skip to content

Commit

Permalink
Added space as a delimiter for parsing rows of values. Needed for gen…
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCzarnecki committed Dec 19, 2024
1 parent 2c61d88 commit 50f5d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsdfdata/Serializers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ namespace BSDFData
std::vector<double> parseRow(const std::string & line)
{
std::vector<double> result;
std::regex regex("[,\t]"); // Regular expression to match commas or tabs
std::regex regex("[ ,\t]"); // Regular expression to match space, commas, or tabs
std::sregex_token_iterator iter(line.begin(), line.end(), regex, -1);
std::sregex_token_iterator end;

Expand Down

0 comments on commit 50f5d95

Please sign in to comment.