We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e517ec commit f3c2711Copy full SHA for f3c2711
command.go
@@ -5492,8 +5492,6 @@ func (cmd *InfoCmd) readReply(rd *proto.Reader) error {
5492
5493
section := ""
5494
scanner := bufio.NewScanner(strings.NewReader(val))
5495
- moduleRe := regexp.MustCompile(`module:name=(.+?),(.+)$`)
5496
-
5497
for scanner.Scan() {
5498
line := scanner.Text()
5499
if strings.HasPrefix(line, "#") {
@@ -5504,6 +5502,7 @@ func (cmd *InfoCmd) readReply(rd *proto.Reader) error {
5504
5502
cmd.val[section] = make(map[string]string)
5505
5503
} else if line != "" {
5506
if section == "Modules" {
+ moduleRe := regexp.MustCompile(`module:name=(.+?),(.+)$`)
5507
kv := moduleRe.FindStringSubmatch(line)
5508
if len(kv) == 3 {
5509
cmd.val[section][kv[1]] = kv[2]
0 commit comments