We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d531d12 commit b49967aCopy full SHA for b49967a
packages/notion-utils/src/normalize-title.ts
@@ -1,7 +1,7 @@
1
export const normalizeTitle = (title?: string | null): string => {
2
return (title || '')
3
.replace(/ /g, '-')
4
- .replace(/[^a-zA-Z0-9-\u4e00-\u9fa5]/g, '')
+ .replace(/[^a-zA-Z0-9-\u4e00-\u9FFF\u3041-\u3096\u30A1-\u30FC\u3000-\u303F]/g, '')
5
.replace(/--/g, '-')
6
.replace(/-$/, '')
7
.replace(/^-/, '')
0 commit comments