mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Protect against zero-width chars in display name sanitation (see https://github.com/bluesky-social/social-app/pull/5703#issuecomment-2407459187) (#5729)

authored by

Paul Frazee and committed by
GitHub
f7852d02 7e5c5227

+1 -1
+1 -1
src/lib/strings/display-names.ts
··· 7 7 const CHECK_MARKS_RE = /[\u2705\u2713\u2714\u2611]/gu 8 8 const CONTROL_CHARS_RE = 9 9 /[\u0000-\u001F\u007F-\u009F\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g 10 - const MULTIPLE_SPACES_RE = /[\s][\s]+/g 10 + const MULTIPLE_SPACES_RE = /[\s][\s\u200B]+/g 11 11 12 12 export function sanitizeDisplayName( 13 13 str: string,