diff --git a/packages/geo/src/lib/search/shared/sources/icherche.ts b/packages/geo/src/lib/search/shared/sources/icherche.ts index da3907b492..35f1d11256 100644 --- a/packages/geo/src/lib/search/shared/sources/icherche.ts +++ b/packages/geo/src/lib/search/shared/sources/icherche.ts @@ -317,7 +317,7 @@ export class IChercheSearchSource extends SearchSource implements TextSearch { * @param term Query with hashtag */ private computeTerm(term: string): string { - return term.replace(/(#[^\s]*)/g, ''); + return term.replace(/(#[^\s]*)/g, '').replace(/[^\wÀ-ÿ !\-\(\),'#]+/g, ''); } /**