fix: handle trailing commas

Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
This commit is contained in:
joseph-sentry 2024-06-04 14:15:56 -04:00
parent ccf7a1fd43
commit 69df7f6793
No known key found for this signature in database
4 changed files with 8 additions and 4 deletions

4
dist/index.js vendored
View file

@ -32568,7 +32568,9 @@ const buildUploadExec = () => buildExec_awaiter(void 0, void 0, void 0, function
}
if (files) {
files.split(',').map((f) => f.trim()).forEach((f) => {
uploadExecArgs.push('-f', `${f}`);
if (f.length > 0) { // this handles trailing commas
uploadExecArgs.push('-f', `${f}`);
}
});
}
if (flags) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long