X-Git-Url: https://git.korewanetadesu.com/?p=python-collate.git;a=blobdiff_plain;f=collate%2F_abcollator.py;h=2e6ab9567338e48884c6e46778b112e914d229e5;hp=02cb733c79d889462a03e4680ece539e664cb696;hb=7c67e10286c784b572703666a980e85b39b858ee;hpb=2a37219e2d9c0fe58e78d987a21f6e37cfd33940 diff --git a/collate/_abcollator.py b/collate/_abcollator.py index 02cb733..2e6ab95 100644 --- a/collate/_abcollator.py +++ b/collate/_abcollator.py @@ -19,5 +19,6 @@ class Collator(object): words = [] for sorteme in self.sortemes(string): num, alpha = collate._strings.numeric(sorteme, invalid) - words.append((num, self.key(alpha))) + alpha = self.key(collate._strings.strip_punc(alpha)) + words.append((num, alpha)) return words