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 1
1
export const normalizeTitle = ( title ?: string | null ) : string => {
2
2
return ( title || '' )
3
3
. 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
+ )
5
8
. replace ( / - - / g, '-' )
6
9
. replace ( / - $ / , '' )
7
10
. replace ( / ^ - / , '' )
Original file line number Diff line number Diff line change @@ -793,7 +793,13 @@ export const Block: React.FC<BlockProps> = (props) => {
793
793
}
794
794
795
795
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
+ >
797
803
{ order . map ( ( column ) => {
798
804
const color = formatMap ?. [ column ] ?. color
799
805
You can’t perform that action at this time.
0 commit comments