From bfb83a931b001fbff46bff8a2702b4a09aef669c Mon Sep 17 00:00:00 2001 From: Ryohei Ueda Date: Sun, 6 Dec 2020 12:53:46 +0900 Subject: [PATCH] Allow escaped comma and space --- src/influxdb-cpp-rest/input_sanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/influxdb-cpp-rest/input_sanitizer.cpp b/src/influxdb-cpp-rest/input_sanitizer.cpp index 5a87080..68877ee 100644 --- a/src/influxdb-cpp-rest/input_sanitizer.cpp +++ b/src/influxdb-cpp-rest/input_sanitizer.cpp @@ -12,7 +12,7 @@ namespace influxdb { namespace utility { - constexpr const char* regex = R"((^[a-zA-Z0-9_/\\.\-]+$|"(?:[^\\"]|\\.)+"))"; + constexpr const char* regex = R"((^([a-zA-Z0-9_/\\.\-]|\\ |\\,)+$|"(?:[^\\"]|\\.)+"))"; const std::regex check_identifier(regex);