From ebefd3d10af8d79e765030c263aa560cbb6420d2 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 25 Oct 2025 12:24:22 +0200 Subject: ai invoice importing with batch queries --- src/strops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/strops.cpp') diff --git a/src/strops.cpp b/src/strops.cpp index 2dfbf16..798e57e 100644 --- a/src/strops.cpp +++ b/src/strops.cpp @@ -162,10 +162,10 @@ namespace strops { pos++; // Skip whitespace and quotes - while (*pos == ' ' || *pos == '\"') pos++; + while (*pos == ' ' || (*pos == '\"' && *(pos+1) != '\"')) pos++; size_t i = 0; - while (*pos && !(*pos == '\"' && *(pos-1) != '\\') && i < out_size - 1) { + while (*pos /*&& *pos != '}'*/ && !(*pos == '\"' && *(pos-1) != '\\') && i < out_size - 1) { out[i++] = *pos++; } out[i] = '\0'; -- cgit v1.2.3-70-g09d2