Skip to content

Commit

Permalink
Apply gofmt to util.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yamnikov-oleg committed Feb 3, 2017
1 parent 1e98b9d commit 1ddac2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
)

var (
EnvVarRegexp = regexp.MustCompile(`\$(\w+)`)
UrlSchemaRegexp = regexp.MustCompile(`^\w+://`)
HttpUrlSchemaRegexp = regexp.MustCompile(`^(\w+\.)+(\w+)(/.*)?$`)
EnvVarRegexp = regexp.MustCompile(`\$(\w+)`)
UrlSchemaRegexp = regexp.MustCompile(`^\w+://`)
HttpUrlSchemaRegexp = regexp.MustCompile(`^(\w+\.)+(\w+)(/.*)?$`)
CmdlineComponentRegexp = regexp.MustCompile(`(?:([^'"\s]+)|'([^']+)'|"([^"]+)")`)
)

Expand Down Expand Up @@ -61,7 +61,7 @@ func SplitCommandline(cmdline string) []string {
components := []string{}

matches := CmdlineComponentRegexp.FindAllStringSubmatch(cmdline, -1)
for _, match := range matches{
for _, match := range matches {
fstNonEmptyGrp := match[0]
for _, g := range match[1:] {
if g != "" {
Expand Down

0 comments on commit 1ddac2e

Please sign in to comment.