From b356b3a7628b687a3de9f714102c4fd2a170348b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 20 Feb 2010 13:21:25 -0500 Subject: Added `be html --min-id-length INT` option --- libbe/util/id.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbe/util/id.py') diff --git a/libbe/util/id.py b/libbe/util/id.py index 76079e7..9192ac8 100644 --- a/libbe/util/id.py +++ b/libbe/util/id.py @@ -232,6 +232,8 @@ def _truncate(uuid, other_uuids, min_length=3): -------- _expand : inverse """ + if min_length == -1: + return uuid chars = min_length for id in other_uuids: if id == uuid: -- cgit