Normalization of ä, ö,ü and ß in filters and search of duplicates
This commit is contained in:
@@ -47,7 +47,14 @@
|
||||
}
|
||||
|
||||
function normalize(value) {
|
||||
let result = value.trim().replace(/\s+/g, ' ');
|
||||
const sharedNormalize = window.AssetManagerNormalizeSearchText;
|
||||
if (typeof sharedNormalize === 'function') {
|
||||
return sharedNormalize(value, {
|
||||
caseSensitive: !caseInsensitive.checked,
|
||||
collapseWhitespace: true
|
||||
});
|
||||
}
|
||||
let result = String(value || '').trim().replace(/\s+/g, ' ');
|
||||
if (caseInsensitive.checked) result = result.toLocaleLowerCase();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user