diff options
author | W. Trevor King <wking@drexel.edu> | 2010-02-20 13:21:25 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-02-20 13:21:25 -0500 |
commit | b356b3a7628b687a3de9f714102c4fd2a170348b (patch) | |
tree | c4f83f62677f269a6e6d09150a25ed374324f7b3 /libbe/util | |
parent | 4d1e4ad8aa2cb42648de90966cef904b555f9de9 (diff) | |
download | bugseverywhere-b356b3a7628b687a3de9f714102c4fd2a170348b.tar.gz |
Added `be html --min-id-length INT` option
Diffstat (limited to 'libbe/util')
-rw-r--r-- | libbe/util/id.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |