Normalization of ä, ö,ü and ß in filters and search of duplicates
This commit is contained in:
1 parent
b54b180115
commit
9b080bc860
9 files changed
+95
-15
No files matched your search
@@ -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