Skip to content

Commit 1a5f481

Browse files
feat: use language config files
resolves #165
1 parent 8ed1c90 commit 1a5f481

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

segment_golang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (g *golang) init(props *properties, env environmentInfo) {
1414
props: props,
1515
commands: []string{"go"},
1616
versionParam: "version",
17-
extensions: []string{"*.go"},
17+
extensions: []string{"*.go", "go.mod"},
1818
versionRegex: `go(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
1919
}
2020
}

segment_node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (n *node) init(props *properties, env environmentInfo) {
1414
props: props,
1515
commands: []string{"node"},
1616
versionParam: "--version",
17-
extensions: []string{"*.js", "*.ts"},
17+
extensions: []string{"*.js", "*.ts", "package.json"},
1818
versionRegex: `(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
1919
}
2020
}

0 commit comments

Comments
 (0)