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.
2 parents 64b3a28 + ba8754a commit 26df9f0Copy full SHA for 26df9f0
src/utils/index.ts
@@ -113,7 +113,7 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
113
name = uri.path;
114
} else if (fileExt === "cls") {
115
// Allow Unicode letters
116
- const match = content.match(/^[ \t]*Class (%?[\p{L}\d]+(?:\.[\p{L}\d]+)+)/imu);
+ const match = content.match(/^[ \t]*Class[ \t]+(%?[\p{L}\d]+(?:\.[\p{L}\d]+)+)/imu);
117
if (match) {
118
[, name, ext = "cls"] = match;
119
}
0 commit comments