8 lines
180 B
JavaScript
8 lines
180 B
JavaScript
export function normalizeSearchText (value) {
|
|
return String(value || '')
|
|
.toLocaleLowerCase('tr-TR')
|
|
.normalize('NFD')
|
|
.replace(/[\u0300-\u036f]/g, '')
|
|
.trim()
|
|
}
|