feat: match ae/oe ligatures in normalization
This commit is contained in:
@@ -11,6 +11,8 @@ export interface Matchable {
|
||||
export function normalize(input: string): string {
|
||||
return input
|
||||
.toLowerCase()
|
||||
.replace(/æ/g, 'ae')
|
||||
.replace(/œ/g, 'oe')
|
||||
.normalize('NFKD')
|
||||
.replace(/[\u0300-\u036f]/g, '')
|
||||
.replace(/[^\p{L}\p{N}\s]/gu, ' ')
|
||||
|
||||
Reference in New Issue
Block a user