Skip to content

Commit 95bbca8

Browse files
authored
fix: some installations not detecting Task version correctly (#14)
1 parent 8923fbe commit 95bbca8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- Fixed some installations (e.g. Brew) not detecting the Task version correctly (#13, #14 by @pd93).
6+
37
## v0.1.0 - 2023-03-26
48

59
- View tasks in the sidebar.

src/services/taskfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class TaskfileService {
108108

109109
parseVersion(stdout: string): semver.SemVer | undefined {
110110
// Extract the version string from the output
111-
let matches = stdout.match(/v(\d+\.\d+\.\d+)/);
111+
let matches = stdout.match(/(\d+\.\d+\.\d+)/);
112112
if (!matches || matches.length !== 2) {
113113
return undefined;
114114
}

0 commit comments

Comments
 (0)