trim tag instead of 500 error
This commit is contained in:
parent
5b4c9d3048
commit
4277908023
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue