From 3bd4ac02ded5af9a666ad7e99ebf6891bc339636 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Mon, 20 Apr 2020 11:44:18 -0700 Subject: Support any number of series fields --- bh20simplewebuploader/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index e31f18b..34dc354 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -48,7 +48,7 @@ def name_to_label(field_name): """ # May end in a number, which should be set off by a space - set_off_number = re.sub('([0-9])$', r' \1', field_name) + set_off_number = re.sub('([0-9]+)$', r' \1', field_name) return string.capwords(set_off_number.replace('_', ' ')) -- cgit v1.2.3