Refactor
This commit is contained in:
@@ -76,5 +76,5 @@ export async function expandReplyTree(
|
||||
export const sanitizeText = (text: string) =>
|
||||
text
|
||||
.replaceAll(/(\r\n|\r|\n)\s+/g, "\n\n") // remove extra newlines
|
||||
.replaceAll("@", "") // remove mentions
|
||||
.replaceAll("#", ""); // remove hashtags
|
||||
.replaceAll("@", "@") // remove mentions
|
||||
.replaceAll("#", "#"); // remove hashtags
|
||||
|
||||
Reference in New Issue
Block a user