From 8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 12 Feb 2020 16:20:49 +0100 Subject: Simplify code for search-typeahead --- client/src/app/shared/angular/highlight.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared/angular') diff --git a/client/src/app/shared/angular/highlight.pipe.ts b/client/src/app/shared/angular/highlight.pipe.ts index e219b3823..fb6042280 100644 --- a/client/src/app/shared/angular/highlight.pipe.ts +++ b/client/src/app/shared/angular/highlight.pipe.ts @@ -30,7 +30,7 @@ export class HighlightPipe implements PipeTransform { break } case 'Single-And-StartsWith-Match': { - regex = new RegExp("^" + stringToHighlight, caseFlag) + regex = new RegExp('^' + stringToHighlight, caseFlag) break } case 'Multi-Match': { -- cgit v1.2.3