Skip to content

Commit 7920090

Browse files
committed
other way
1 parent 961e68d commit 7920090

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/extension.ts

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

0 commit comments

Comments
 (0)