From 79bce5c7a6b68a8f78a3bc8f00ccd34f19fbeb4d Mon Sep 17 00:00:00 2001 From: await-ovo <13152410380@163.com> Date: Thu, 30 Mar 2023 17:00:29 +0800 Subject: [PATCH] docs: trim key and value when parse string setting to object --- website/src/components/playground/config/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/playground/config/settings.js b/website/src/components/playground/config/settings.js index 5192fbfe..d17e3532 100644 --- a/website/src/components/playground/config/settings.js +++ b/website/src/components/playground/config/settings.js @@ -3,7 +3,7 @@ const parseObject = (value) => const [left, right] = assignment.split('=') return { ...obj, - [left]: right, + [left.trim()]: right.trim(), } }, {})