From 2eb1ea469f06478cd40268fe9d7de5746dee60fb Mon Sep 17 00:00:00 2001 From: Esteban Amas Date: Tue, 16 Aug 2022 16:06:53 -0400 Subject: [PATCH] fix: trim parsed input group keys to remove whitespace (#60) --- lib/parser/parse-options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/parser/parse-options.js b/lib/parser/parse-options.js index de833ca..85f78b0 100644 --- a/lib/parser/parse-options.js +++ b/lib/parser/parse-options.js @@ -10,8 +10,8 @@ function parseOptions(input, callback, keyValueDelim, groupDelim) { if (kv.length !== 2) { continue; } - var k = kv[0]; - var v = kv[1]; + var k = kv[0].trim(); + var v = kv[1].trim(); callback(k, v); } }