Skip to content

Commit 6275a95

Browse files
committed
fixed issue found by codeql
1 parent a7d7b2b commit 6275a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ObjectScriptCodeLensProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ObjectScriptCodeLensProvider implements vscode.CodeLensProvider {
2828
const className = file.name.split(".").slice(0, -1).join(".");
2929

3030
const { debugThisMethod, copyToClipboard } = config("debug");
31-
const pattern = /(?:^ClassMethod\s)([^(]+)\(((?:[^()]|\([^()]*\)|{[^{}]*})*)\)/i;
31+
const pattern = /(?:^ClassMethod\s)([^(]+)\(((?:[^()]|\([^()]*\)|{{}}|{}|{[^{}]+})*)\)/i;
3232
let inComment = false;
3333
for (let i = 0; i < document.lineCount; i++) {
3434
const line = document.lineAt(i);

0 commit comments

Comments
 (0)