diff --git a/dist/buildinfo.json b/dist/buildinfo.json index d49026ce..7610f07d 100644 --- a/dist/buildinfo.json +++ b/dist/buildinfo.json @@ -1 +1 @@ -{"sha":"b238758","timestamp":1734333128} \ No newline at end of file +{"sha":"36b3dfe","timestamp":1734333416} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 96c86c72..6b3bb7aa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -193,8 +193,8 @@ class ConfigMerger { } } } -const BUILD_TIMESTAMP = 1734333128; -const BUILD_VERSION = "b238758"; +const BUILD_TIMESTAMP = 1734333416; +const BUILD_VERSION = "36b3dfe"; function createAgentUserConfig() { return Object.assign( {}, @@ -2335,9 +2335,9 @@ function formatInput(input, type) { if (type === "json") { return JSON.parse(input); } else if (type === "space-separated") { - return input.split(/\s+/); + return input.trim().split(" ").filter(Boolean); } else if (type === "comma-separated") { - return input.split(/\s*,\s*/); + return input.split(",").map((item) => item.trim()).filter(Boolean); } else { return input; } diff --git a/packages/lib/core/src/config/version.ts b/packages/lib/core/src/config/version.ts index fa92f2f7..389c757c 100644 --- a/packages/lib/core/src/config/version.ts +++ b/packages/lib/core/src/config/version.ts @@ -1,2 +1,2 @@ -export const BUILD_TIMESTAMP = 1734333128; -export const BUILD_VERSION = 'b238758'; +export const BUILD_TIMESTAMP = 1734333416; +export const BUILD_VERSION = '36b3dfe'; diff --git a/packages/lib/plugins/src/template.ts b/packages/lib/plugins/src/template.ts index 902812e9..f045ecd5 100644 --- a/packages/lib/plugins/src/template.ts +++ b/packages/lib/plugins/src/template.ts @@ -163,9 +163,9 @@ export function formatInput(input: string, type: TemplateInputType): string | st if (type === 'json') { return JSON.parse(input); } else if (type === 'space-separated') { - return input.split(/\s+/); + return input.trim().split(' ').filter(Boolean); } else if (type === 'comma-separated') { - return input.split(/\s*,\s*/); + return input.split(',').map(item => item.trim()).filter(Boolean); } else { return input; }