diff --git a/packages/react-components/src/Expander.tsx b/packages/react-components/src/Expander.tsx index a82e602ad0..952618f920 100644 --- a/packages/react-components/src/Expander.tsx +++ b/packages/react-components/src/Expander.tsx @@ -52,7 +52,7 @@ function formatMeta (meta?: Meta): [React.ReactNode, React.ReactNode] | null { firstEmpty === -1 ? strings : strings.slice(0, firstEmpty) - ).join(' ').replace(/#(| ).*<\/weight>/, ''); + ).join(' ').replace(/# ?[^<]*<\/weight>/, ''); const parts = splitParts(combined.replace(/\\/g, '').replace(/`/g, '')); return [