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 2bd0f26 commit 8f0b895Copy full SHA for 8f0b895
src/utils/index.ts
@@ -87,7 +87,7 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
87
name = uri.path;
88
} else if (fileExt === "cls") {
89
// Allow Unicode letters
90
- const match = content.match(/^Class (%?[\p{L}\d]+(?:\.[\p{L}\d]+)+)/imu);
+ const match = content.match(/^[ \t]*Class (%?[\p{L}\d]+(?:\.[\p{L}\d]+)+)/imu);
91
if (match) {
92
[, name, ext = "cls"] = match;
93
}
0 commit comments