Skip to content

Commit

Permalink
remove webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
abentkamp committed Oct 21, 2023
1 parent c9d04c4 commit 020157d
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 4,739 deletions.
24 changes: 12 additions & 12 deletions client/src/editor/leanclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,16 +606,16 @@ export class LeanClient implements Disposable {
// return false
// }

private extractVersion (v: string | undefined): SemVer {
if (!v) return new SemVer('0.0.0')
const prefix = 'Lake version'
if (v.startsWith(prefix)) v = v.slice(prefix.length).trim()
const pos = v.indexOf('(')
if (pos > 0) v = v.slice(0, pos).trim()
try {
return new SemVer(v)
} catch {
return new SemVer('0.0.0')
}
}
// private extractVersion (v: string | undefined): SemVer {
// if (!v) return new SemVer('0.0.0')
// const prefix = 'Lake version'
// if (v.startsWith(prefix)) v = v.slice(prefix.length).trim()
// const pos = v.indexOf('(')
// if (pos > 0) v = v.slice(0, pos).trim()
// try {
// return new SemVer(v)
// } catch {
// return new SemVer('0.0.0')
// }
// }
}
Loading

0 comments on commit 020157d

Please sign in to comment.