Skip to content

Commit 961e68d

Browse files
committed
Different brackets
1 parent d6512cf commit 961e68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function activate(context: ExtensionContext) {
6868
}
6969
const jsArray = stdout
7070
// remove the square brackets
71-
.slice(1, -2)
71+
.replace(/^\[|\]$/g, '')
7272
// split into array items
7373
.split(',')
7474
.map(s => s.trim().split("^"))

0 commit comments

Comments
 (0)