2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-30 06:29:49 +01:00

Entrances now do cookie / git author thing. + tidyup.

This commit is contained in:
2024-12-28 23:49:26 +00:00
parent e7444d20a4
commit dac3e6e288
7 changed files with 43 additions and 24 deletions

View File

@@ -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