We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4208a26 commit 806cbc2Copy full SHA for 806cbc2
src/simplnx/Utilities/FileUtilities.hpp
@@ -38,6 +38,7 @@
38
#include "simplnx/Utilities/StringInterpretationUtilities.hpp"
39
40
#include <filesystem>
41
+#include <regex>
42
#include <string>
43
44
namespace nx::core::FileUtilities
@@ -127,7 +128,8 @@ class CSVDataParser : public AbstractDataParser
127
128
{
129
if constexpr(std::is_same_v<T, std::string>)
130
- m_Array[index] = token;
131
+ const std::regex re(R"(^['"]+|['"]+$)"); // Remove quotes and double quotes
132
+ m_Array[index] = std::regex_replace(token, re, "");
133
}
134
else
135
0 commit comments