Skip to content

Commit e73f4fc

Browse files
Third attempt to fix regex
1 parent 5d04f21 commit e73f4fc

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+\(\s*.*(?:,\s*)*\)))\1/g);
1919
if (textLine.text.match(regex)) {
2020
const uri = document.uri;
2121
const startIndex = textLine.text.search(regex);

0 commit comments

Comments
 (0)