commit 14cd5e72ce5a0b649d342e1bc38a7b0fb44a91e5
parent c228a215550155e487653dd75f41f391ef0fbaf2
Author: Remy Noulin <loader2x@gmail.com>
Date: Fri, 1 Jul 2022 14:58:32 +0200
fix escaping for dict or array in dicts and arrays
For example:
{a:{b:'sdf\'}}
release/libsheepy.h | 2 +-
release/libsheepySmall.c | 4 ++--
src/libsheepy.h | 2 +-
src/libsheepySmall.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
Diffstat:
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/release/libsheepy.h b/release/libsheepy.h
@@ -98,7 +98,7 @@
// version accoring to the version package: Release.Major.minor.patch
// https://noulin.net/version/file/README.md.html
-#define LIBSHEEPY_VERSION "2.2.10"
+#define LIBSHEEPY_VERSION "2.2.10.1"
#ifndef SH_PREFIX
#define SH_PREFIX(NAME) NAME
diff --git a/release/libsheepySmall.c b/release/libsheepySmall.c
@@ -999,7 +999,7 @@ char* sDictEscapeTiny(sDictt* obj) {
}
else {
pErrorNULL(iAppendS(&r, ":"));
- s = sToStringTiny(e->data);
+ s = sEscapeTiny(e->data);
pErrorNULL(iAppendS(&r, s));
free(s);
pErrorNULL(iAppendS(&r, ","));
@@ -1076,7 +1076,7 @@ char* sArrayEscapeTiny(sArrayt* obj) {
pErrorNULL(iAppendS(&r, "\""));
}
else {
- s = sToStringTiny(o);
+ s = sEscapeTiny(o);
pErrorNULL(iAppendS(&r, s));
free(s);
}
diff --git a/src/libsheepy.h b/src/libsheepy.h
@@ -98,7 +98,7 @@
// version accoring to the version package: Release.Major.minor.patch
// https://noulin.net/version/file/README.md.html
-#define LIBSHEEPY_VERSION "2.2.10"
+#define LIBSHEEPY_VERSION "2.2.10.1"
#ifndef SH_PREFIX
#define SH_PREFIX(NAME) NAME
diff --git a/src/libsheepySmall.c b/src/libsheepySmall.c
@@ -999,7 +999,7 @@ char* sDictEscapeTiny(sDictt* obj) {
}
else {
pErrorNULL(iAppendS(&r, ":"));
- s = sToStringTiny(e->data);
+ s = sEscapeTiny(e->data);
pErrorNULL(iAppendS(&r, s));
free(s);
pErrorNULL(iAppendS(&r, ","));
@@ -1076,7 +1076,7 @@ char* sArrayEscapeTiny(sArrayt* obj) {
pErrorNULL(iAppendS(&r, "\""));
}
else {
- s = sToStringTiny(o);
+ s = sEscapeTiny(o);
pErrorNULL(iAppendS(&r, s));
free(s);
}