this repo has no description
0
fork

Configure Feed

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

Compare exact string before checking variants

+6 -5
+6 -5
src/components/name-text.jsx
··· 19 19 20 20 const displayNameWithEmoji = emojifyText(displayName, emojis); 21 21 22 + const trimmedUsername = username.toLowerCase().trim(); 23 + const trimmedDisplayName = (displayName || '').toLowerCase().trim(); 24 + 22 25 if ( 23 - !short && 24 - username.toLowerCase().trim() === 25 - (displayName || '') 26 + (!short && trimmedUsername === trimmedDisplayName) || 27 + trimmedUsername === 28 + trimmedDisplayName 26 29 .replace(/(\:(\w|\+|\-)+\:)(?=|[\!\.\?]|$)/g, '') // Remove shortcodes, regex from https://regex101.com/r/iE9uV0/1 27 30 .replace(/\s+/g, '') // E.g. "My name" === "myname" 28 31 .replace(/[^a-z0-9]/gi, '') // Remove non-alphanumeric characters 29 - .toLowerCase() 30 - .trim() 31 32 ) { 32 33 username = null; 33 34 }