rss improvements

This commit is contained in:
George Powell committed 2026-02-02 02:52:53 -05:00
1 parent 244113671e
commit 3947e8adb0
5 files changed
+25 -9

No files matched your search

+6 -1
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>