Skip to content

Commit ecc65fe

Browse files
fix: prettier
1 parent 7bdba9a commit ecc65fe

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

packages/notion-utils/src/normalize-title.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
export const normalizeTitle = (title?: string | null): string => {
22
return (title || '')
33
.replace(/ /g, '-')
4-
.replace(/[^a-zA-Z0-9-\u4e00-\u9FFF\u3041-\u3096\u30A1-\u30FC\u3000-\u303F]/g, '')
4+
.replace(
5+
/[^a-zA-Z0-9-\u4e00-\u9FFF\u3041-\u3096\u30A1-\u30FC\u3000-\u303F]/g,
6+
''
7+
)
58
.replace(/--/g, '-')
69
.replace(/-$/, '')
710
.replace(/^-/, '')

packages/react-notion-x/src/block.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)