From da52129076e671df864660561b7bcf6301c2aa22 Mon Sep 17 00:00:00 2001 From: Joelrau Date: Thu, 23 Jul 2020 06:35:50 +0300 Subject: [PATCH] [CSV] Allowed '//' comments in .csv files --- src/Utils/CSV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/CSV.cpp b/src/Utils/CSV.cpp index 380577cb..d3399f98 100644 --- a/src/Utils/CSV.cpp +++ b/src/Utils/CSV.cpp @@ -110,7 +110,7 @@ namespace Utils //++i; continue; } - else if (!isString && row[i] == '#' && allowComments) // Skip comments. I know CSVs usually don't have comments, but in this case it's useful + else if (!isString && (row[i] == '#' || (row[i] == '/' && row[i+1] == '/') ) && allowComments) // Skip comments. I know CSVs usually don't have comments, but in this case it's useful { return; }