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 +- client/src/app/shared/shared.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared') 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': { diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index 090a5b7f9..30b3ba0c1 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -89,7 +89,7 @@ import { NumberFormatterPipe } from '@app/shared/angular/number-formatter.pipe' import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe' import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' import { FromNowPipe } from '@app/shared/angular/from-now.pipe' -import { HighlightPipe }from '@app/shared/angular/highlight.pipe' +import { HighlightPipe } from '@app/shared/angular/highlight.pipe' import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' -- cgit v1.2.3