Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

## [Unreleased]

- Initial release
- Initial release

## [06/04/2025]

- Fix multiple whitespaces issue.
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export async function pasteAsStringArray(editor: TextEditor, edit?: TextEditorEd
clipboardContent
.trim()
.split(" ")
.filter(value => value !== "")
.map((value) => value.toString())
).slice(1, -1);

Expand Down
1 change: 1 addition & 0 deletions src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ suite("Extension Test Suite", async () => {
"--arg1": `"--arg1"`,
"--arg1 --arg2 --arg3": `"--arg1","--arg2","--arg3"`,
"--arg1 1 --arg2 2 --arg3 3": `"--arg1","1","--arg2","2","--arg3","3"`,
"--arg1 1 --arg2 2 --arg3 3": `"--arg1","1","--arg2","2","--arg3","3"`,
};
for (let [key, value] of Object.entries(testStrings)) {
let filepath = path.join(__dirname, '../../../resources/test.txt');
Expand Down
Loading