fix: don't chop off colons when generating titles as they could interfere with emoji

This commit is contained in:
Julian Lam
2024-11-14 15:07:42 -05:00
parent b25aa3364a
commit f449fafccf
2 changed files with 1 additions and 7 deletions

View File

@@ -343,9 +343,6 @@ Helpers.generateTitle = (html) => {
title = sentences.shift();
}
// Trim certain punctuation marks
title = title.trim().replace(/[:]$/, '');
// Truncate down if too long
if (title.length > meta.config.maximumTitleLength) {
title = `${title.slice(0, meta.config.maximumTitleLength - 3)}...`;