diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-03-05 17:48:39 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-03-05 17:48:39 +0100 |
commit | 1441d4c5806219c59fa1ae27c411a0fedb87a7c2 (patch) | |
tree | ec1a2fd103d422e13161895590d04f3873894266 /utils.go | |
parent | 2231e3eae86c5e3ae05e30f667d331f5875c7884 (diff) |
Fixed target and terminal id arg parsing
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'utils.go')
-rw-r--r-- | utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,5 +150,5 @@ func Confirm(question string) bool { // compareID Compare an ID to a reference ID func compareID(refID, ID string) bool { - return refID != "" && ID != "" && strings.Contains(refID, ID) + return refID != "" && ID != "" && strings.HasPrefix(refID, ID) } |