File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11export const normalizeTitle = ( title ?: string | null ) : string => {
22 return ( title || '' )
33 . replace ( / / g, '-' )
4- . replace ( / [ ^ a - z A - Z 0 - 9 - \u4e00- \u9FFF \u3041 - \u3096 \u30A1 - \u30FC \u3000 - \u303F ] / g, '' )
4+ . replace (
5+ / [ ^ a - z A - Z 0 - 9 - \u4e00- \u9FFF \u3041 - \u3096 \u30A1 - \u30FC \u3000 - \u303F ] / g,
6+ ''
7+ )
58 . replace ( / - - / g, '-' )
69 . replace ( / - $ / , '' )
710 . replace ( / ^ - / , '' )
Original file line number Diff line number Diff line change @@ -793,7 +793,13 @@ export const Block: React.FC<BlockProps> = (props) => {
793793 }
794794
795795 return (
796- < tr className = { cs ( 'notion-simple-table-row' , backgroundColor && `notion-${ backgroundColor } ` , blockId ) } >
796+ < tr
797+ className = { cs (
798+ 'notion-simple-table-row' ,
799+ backgroundColor && `notion-${ backgroundColor } ` ,
800+ blockId
801+ ) }
802+ >
797803 { order . map ( ( column ) => {
798804 const color = formatMap ?. [ column ] ?. color
799805
You can’t perform that action at this time.
0 commit comments