rss improvements

This commit is contained in:
George Powell
2026-02-02 02:52:53 -05:00
parent 244113671e
commit 3947e8adb0
5 changed files with 25 additions and 9 deletions

View File

@@ -76,7 +76,12 @@
if (/^[a-z]/.test(formatted)) {
formatted = "..." + formatted;
}
formatted = formatted.replace(/[,:;-—]$/, "...");
// Replace trailing punctuation with ellipsis
// Preserve closing quotes/brackets that may have been added
formatted = formatted.replace(
/[,:;-—]([)\]}\"\'\u201D\u2019]*)$/,
"...$1",
);
return formatted;
}
</script>