Skip to content

Commit

Permalink
search: fix query search with brackets
Browse files Browse the repository at this point in the history
* Allows queries with brackets and other specific symbols.
* Closes rero/rero-ils#755.

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
  • Loading branch information
Alicia Zangger committed Mar 26, 2020
1 parent bdd6cfb commit eb09338
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export class AutocompleteComponent implements OnInit {
* @param query - string, search query string
*/
getSuggestions(query: string): Observable<any> {
query = query.replace(/[:\-\[\]()/"]/g, ' ');
// patch non working typeaheadMinLength properties
if (query.length < this.typeaheadMinLength) {
return of(undefined);
Expand Down

0 comments on commit eb09338

Please sign in to comment.