trim tag instead of 500 error

This commit is contained in:
Your Name 2025-02-22 18:48:41 -05:00 committed by Henri Dickson
parent 5b4c9d3048
commit 4277908023

View file

@ -55,7 +55,7 @@ class Tag(List):
@staticmethod
def cleanup_title(title, replace=True):
t = re.sub(r"\s+", " ", title.rstrip().lstrip("# "))
t = re.sub(r"\s+", " ", title.rstrip().lstrip("# "))[:100]
return "_" if not t and replace else t
@staticmethod