|
|
@@ -461,7 +461,7 @@ export default Vue.extend({
|
|
|
matchTextFilter (structure: Structure): boolean {
|
|
|
if (!this.textFilter) { return true }
|
|
|
|
|
|
- return structure.name.toLowerCase().includes(this.textFilter.toLowerCase())
|
|
|
+ return this.searchTextNormalize(structure.name).includes(this.searchTextNormalize(this.textFilter))
|
|
|
},
|
|
|
/**
|
|
|
* Does the structure match the current locationFilter
|
|
|
@@ -543,7 +543,7 @@ export default Vue.extend({
|
|
|
this.fitMapToResults()
|
|
|
}
|
|
|
},
|
|
|
- autocompleteSearchNormalize (s: string): string {
|
|
|
+ searchTextNormalize (s: string): string {
|
|
|
return s
|
|
|
.toLowerCase()
|
|
|
.replace(/[éèẽëê]/g, 'e')
|
|
|
@@ -563,7 +563,7 @@ export default Vue.extend({
|
|
|
* @param itemText
|
|
|
*/
|
|
|
enhancedAutocompleteFilter (_: any, queryText: string, itemText: string): boolean {
|
|
|
- return this.autocompleteSearchNormalize(itemText).includes(this.autocompleteSearchNormalize(queryText))
|
|
|
+ return this.searchTextNormalize(itemText).includes(this.searchTextNormalize(queryText))
|
|
|
}
|
|
|
}
|
|
|
})
|