diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-12 16:20:49 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 16:48:46 +0100 |
commit | 8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0 (patch) | |
tree | f3325f8a55cab793ccacc361d47fbf28c5acc4c6 /client/src/app/shared | |
parent | 9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110 (diff) | |
download | PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.tar.gz PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.tar.zst PeerTube-8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0.zip |
Simplify code for search-typeahead
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/angular/highlight.pipe.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared.module.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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 { | |||
30 | break | 30 | break |
31 | } | 31 | } |
32 | case 'Single-And-StartsWith-Match': { | 32 | case 'Single-And-StartsWith-Match': { |
33 | regex = new RegExp("^" + stringToHighlight, caseFlag) | 33 | regex = new RegExp('^' + stringToHighlight, caseFlag) |
34 | break | 34 | break |
35 | } | 35 | } |
36 | case 'Multi-Match': { | 36 | 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' | |||
89 | import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe' | 89 | import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe' |
90 | import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' | 90 | import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' |
91 | import { FromNowPipe } from '@app/shared/angular/from-now.pipe' | 91 | import { FromNowPipe } from '@app/shared/angular/from-now.pipe' |
92 | import { HighlightPipe }from '@app/shared/angular/highlight.pipe' | 92 | import { HighlightPipe } from '@app/shared/angular/highlight.pipe' |
93 | import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' | 93 | import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' |
94 | import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' | 94 | import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' |
95 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' | 95 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' |