summaryrefslogtreecommitdiff
path: root/src/strops.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-25 12:24:22 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-25 12:24:22 +0200
commitebefd3d10af8d79e765030c263aa560cbb6420d2 (patch)
tree037099766d4862687daa11a21ffe03bf3208a607 /src/strops.cpp
parentc35aa95081b994bf0d66d762945ad93bf501ff95 (diff)
ai invoice importing with batch queries
Diffstat (limited to 'src/strops.cpp')
-rw-r--r--src/strops.cpp4
1 files changed, 2 insertions, 2 deletions
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';