From 50f5d9504189a853a98b6c82c95f8359bd9b6a86 Mon Sep 17 00:00:00 2001 From: StephenCzarnecki Date: Wed, 18 Dec 2024 19:20:11 -0500 Subject: [PATCH] Added space as a delimiter for parsing rows of values. Needed for genBSDF files that have spaces for delimiters e.g. https://github.com/LBNL-ETA/WinCalc/blob/dec_2024_test_fix/test/products/cgdb_24040_Intigral_SL_Vanity_C000_White_Pleated_Shade_20mm_genBSDF.xml --- src/bsdfdata/Serializers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsdfdata/Serializers.hpp b/src/bsdfdata/Serializers.hpp index d32a395..d2f8a8f 100644 --- a/src/bsdfdata/Serializers.hpp +++ b/src/bsdfdata/Serializers.hpp @@ -372,7 +372,7 @@ namespace BSDFData std::vector parseRow(const std::string & line) { std::vector 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;