From 99c0b4f97119287b6ba4f083757c24f7f53dc0d9 Mon Sep 17 00:00:00 2001 From: wangshijun Date: Mon, 25 Sep 2023 17:15:49 +0800 Subject: [PATCH] fix: test case --- packages/sdk-util/src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-util/src/util.js b/packages/sdk-util/src/util.js index 2c4fb40..a02a14d 100644 --- a/packages/sdk-util/src/util.js +++ b/packages/sdk-util/src/util.js @@ -190,7 +190,7 @@ const formatArgs = (values, specs = {}) => { // escape slash(\) and double quotes (") if ('String' === type) { - const container = value.includes('\n') ? '"""' : '"'; + const container = isNull(value) ? null : value.includes('\n') ? '"""' : '"'; return isNull(value) ? null : `${container}${value .toString()