Skip to content

Commit 5d04f21

Browse files
Second attempt to fix regex
1 parent 4d16e23 commit 5d04f21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/CodeLensProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MyCodeLensProvider implements CodeLensProvider {
1515

1616
for (let index = 0; index < document.lineCount; index++) {
1717
const textLine = document.lineAt(index);
18-
const regex = new RegExp(/(?=(\w+))\1\s*\(\s*.*(?:,\s*\S+)*\s*\)/g);
18+
const regex = new RegExp(/(?=(\w+))\1\s*\(\s*.*(?>(?:,\s*\S+))*\s*\)/g);
1919
if (textLine.text.match(regex)) {
2020
const uri = document.uri;
2121
const startIndex = textLine.text.search(regex);

0 commit comments

Comments
 (0)