aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-02-12 16:20:49 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-02-13 16:48:46 +0100
commit8a979d73c3343ecf07b4e6411fa2a6783cd0a3b0 (patch)
treef3325f8a55cab793ccacc361d47fbf28c5acc4c6 /client/src/app/shared
parent9b8a7aa8ea128f7e197ff38ca9f86ffa53bbe110 (diff)
downloadPeerTube-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.ts2
-rw-r--r--client/src/app/shared/shared.module.ts2
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'
89import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe' 89import { VideoDurationPipe } from '@app/shared/angular/video-duration-formatter.pipe'
90import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe' 90import { ObjectLengthPipe } from '@app/shared/angular/object-length.pipe'
91import { FromNowPipe } from '@app/shared/angular/from-now.pipe' 91import { FromNowPipe } from '@app/shared/angular/from-now.pipe'
92import { HighlightPipe }from '@app/shared/angular/highlight.pipe' 92import { HighlightPipe } from '@app/shared/angular/highlight.pipe'
93import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive' 93import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template.directive'
94import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component' 94import { VideoActionsDropdownComponent } from '@app/shared/video/video-actions-dropdown.component'
95import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' 95import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component'