We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcd128 commit 54d3048Copy full SHA for 54d3048
src/utils/index.ts
@@ -32,8 +32,10 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
32
let ext = "";
33
if (fileExt === "cls") {
34
const match = content.match(/^Class (%?\w+(?:\.\w+)+)/im);
35
- name = match[1];
36
- ext = "cls";
+ if (match) {
+ name = match[1];
37
+ ext = "cls";
38
+ }
39
} else {
40
const match = content.match(/^ROUTINE ([^\s]+)(?:\s+\[.*Type=([a-z]{3,}))?/i);
41
name = match[1];
0 commit comments