Skip to content

Commit 26df9f0

Browse files
authored
Merge pull request #719 from isc-bsaviano/master
Allow multiple spaces between Class and name when extracting class from document
2 parents 64b3a28 + ba8754a commit 26df9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function currentFile(document?: vscode.TextDocument): CurrentFile {
113113
name = uri.path;
114114
} else if (fileExt === "cls") {
115115
// Allow Unicode letters
116-
const match = content.match(/^[ \t]*Class (%?[\p{L}\d]+(?:\.[\p{L}\d]+)+)/imu);
116+
const match = content.match(/^[ \t]*Class[ \t]+(%?[\p{L}\d]+(?:\.[\p{L}\d]+)+)/imu);
117117
if (match) {
118118
[, name, ext = "cls"] = match;
119119
}

0 commit comments

Comments
 (0)