diff --git a/pydu/string.py b/pydu/string.py index 4b90408..f911271 100644 --- a/pydu/string.py +++ b/pydu/string.py @@ -103,7 +103,7 @@ def strips(text, remove): def common_prefix(l): commons = [] - for i in range(len(min(l, key=len))): + for i in range(min(len(s) for s in l)): common = l[0][i] for c in l[1:]: if c[i] != common: