Skip to content

Commit

Permalink
fix(icherche): invalid characters
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Sep 11, 2019
1 parent 6e5fdce commit af1fe8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/geo/src/lib/search/shared/sources/icherche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
}

/**
Expand Down

0 comments on commit af1fe8d

Please sign in to comment.