You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This addition breaks the ability to search numbers with decimals. I fixed it for myself by adjusting the removeDiacriticsFromString() function to be:
export function removeDiacriticsFromString(value) {
if (!value) return value
if (typeof value === 'string' || value instanceof String) {
return value.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
} else {
return value;
}
}
Just ran into this same issue, though in my case the value is an array. Pretty sure this line is calling removeDiacriticsFromString which uses normalize underneath. Numbers and arrays don't have the normalize method.
This addition breaks the ability to search numbers with decimals. I fixed it for myself by adjusting the removeDiacriticsFromString() function to be:
export function removeDiacriticsFromString(value) {
if (!value) return value
if (typeof value === 'string' || value instanceof String) {
return value.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
} else {
return value;
}
}
Originally posted by @AN-WM in #3606 (comment)
The text was updated successfully, but these errors were encountered: