Normalization of ä, ö,ü and ß in filters and search of duplicates

This commit is contained in:
2026-08-03 21:17:32 +00:00
parent b54b180115
commit 9b080bc860
9 changed files with 95 additions and 15 deletions
+8 -1
View File
@@ -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;
}