From 757acbdcb8b5f2badb86df8573cfe7dfda15f2af Mon Sep 17 00:00:00 2001 From: 0xDECAFFED Date: Tue, 19 Apr 2022 10:41:04 +0200 Subject: [PATCH] fix prettify custom separator prettify was only using the custom separator once, then all latter separators defaulted to comma. reproducible with long numbers, e.g. prettify(1000000000, "-") -> '1,000,000-000' --- millify/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/millify/__init__.py b/millify/__init__.py index ed58dfa..29e5c90 100644 --- a/millify/__init__.py +++ b/millify/__init__.py @@ -35,4 +35,4 @@ def prettify(amount, separator=','): if orig == new: return new else: - return prettify(new) + return prettify(new, separator)