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

This commit is contained in:
Roland committed 2026-08-03 21:17:32 +00:00
1 parent b54b180115
commit 9b080bc860
9 files changed
+95 -15

No files matched your search

+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;
}