Improve copy-as-curl

This commit is contained in:
Gregory Schier committed 2024-05-13 11:30:10 -07:00
1 parent b18c042483
commit 22aa14cdc2
21 files changed
+189 -235

No files matched your search

-2
View File
@@ -137,8 +137,6 @@ export function importCommand(parseEntries: ParseEntry[], workspaceId: string) {
// Start at 1 so we can skip the ^curl part
for (let i = 1; i < parseEntries.length; i++) {
let parseEntry = parseEntries[i];
// trim leading spaces between parsed entries
// regex won't match otherwise (e.g. -H 'Content-Type: application/json')
if (typeof parseEntry === 'string') {
parseEntry = parseEntry.trim();
}