Skip to content

Commit

Permalink
fix: less restrictive version parsing, closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuisi committed Jan 27, 2021
1 parent 24da3a0 commit cc8bfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function checkLean4(): Promise<boolean> {
// looks for a global (default) installation of Lean. This way, we can support
// single file editing.
const { stdout, stderr } = await promisify(exec)(cmd, {cwd: folderPath})
const filterVersion = /Lean \(version (\d+)\.(\d+)\.([^,]+), commit [^,]+, \w+\)/
const filterVersion = /version (\d+)\.\d+\..+/
const match = filterVersion.exec(stdout)
if (!match) {
void window.showErrorMessage(`lean4: '${cmd}' returned incorrect version string '${stdout}'.`)
Expand Down

0 comments on commit cc8bfda

Please sign in to comment.