From d3dd29cf8186042715500b9fb0b99365a6e0e011 Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 23 Apr 2024 21:43:47 -0400 Subject: [PATCH] fix bug handling alphabetic numberings below numeric numberings now --- dlibrary/dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 223ed45..45cb376 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -869,7 +869,7 @@ def unique_hierarchical_prefix_numbering(entries, start_point=0): for m in matches: pos = m.start() if pos < start_point: - return None + break prefix = nname(longest_entry)[:pos] debug(f'Checking prefix {prefix}') if all(nname(e).startswith(prefix) or prefix.startswith(nfc(e.stem)) for e in entries):