mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-15 01:55:52 -07:00
9 lines
200 B
TypeScript
9 lines
200 B
TypeScript
export function normalizeTitleIdentity(title: string): string {
|
|
return title
|
|
.normalize('NFKC')
|
|
.toLowerCase()
|
|
.replace(/[^\p{L}\p{N}]+/gu, ' ')
|
|
.trim()
|
|
.replace(/\s+/g, ' ');
|
|
}
|