aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util/id.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/util/id.py')
-rw-r--r--libbe/util/id.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/util/id.py b/libbe/util/id.py
index 3945b20..4537c86 100644
--- a/libbe/util/id.py
+++ b/libbe/util/id.py
@@ -140,6 +140,8 @@ def _expand(truncated_id, common, other_ids):
other_ids = list(other_ids)
for id in other_ids:
if id.startswith(truncated_id):
+ if id == truncated_id:
+ return id
matches.append(id)
if len(matches) > 1:
raise MultipleIDMatches(truncated_id, common, matches)