From dac3e6e2889b1d194069c1b8d1eb98fea6d1f7eb Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 28 Dec 2024 23:49:26 +0000 Subject: Entrances now do cookie / git author thing. + tidyup. --- core/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/utils.py') diff --git a/core/utils.py b/core/utils.py index 5ba1b4b..26d88c6 100644 --- a/core/utils.py +++ b/core/utils.py @@ -218,7 +218,9 @@ def git_string(author_string): return author_string else: editor = author_string.replace("@","_at_") - editor = re.sub('[^0-9a-zA-Z_\.]+', '*', editor) + editor = re.sub('[^0-9a-zA-Z_\.]+', '_', editor) + if editor.startswith("_"): + editor = "X" + editor editor += f" <{editor}@potatohut.expo>" print(f"++ Not git-compatible author string '{author_string}', replacing as '{editor}'") return editor -- cgit v1.2.3