diff options
| author | Eyal Posener <[email protected]> | 2019-07-05 14:58:49 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2019-07-05 17:29:25 +0300 |
| commit | 29f43e246ec41ee311a0a9bc24b15cb4ece4e513 (patch) | |
| tree | a89a2f4ae80897cb9a1f5f98f702ca2d8210731c /complete.go | |
| parent | f71e6baaf2e0d387a847f8e599af7d75be650283 (diff) | |
deprecate match package
Diffstat (limited to 'complete.go')
| -rw-r--r-- | complete.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/complete.go b/complete.go index 991bdea..423cbec 100644 --- a/complete.go +++ b/complete.go @@ -6,9 +6,9 @@ import ( "io" "os" "strconv" + "strings" "github.com/posener/complete/cmd" - "github.com/posener/complete/match" ) const ( @@ -72,7 +72,7 @@ func (c *Complete) Complete() bool { // filter only options that match the last argument matches := []string{} for _, option := range options { - if match.Prefix(option, a.Last) { + if strings.HasPrefix(option, a.Last) { matches = append(matches, option) } } |
