diff options
Diffstat (limited to 'core/utils.py')
-rw-r--r-- | core/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |